From ca46297a025e89e99a0312f3b64f03421178ed86 Mon Sep 17 00:00:00 2001 From: tienvx Date: Thu, 2 Mar 2023 10:30:01 +0700 Subject: [PATCH] Rename method getCode to getHeader --- src/PhpPact/Consumer/Model/AbstractPact.php | 2 +- src/PhpPact/Standalone/Installer/Model/Scripts.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PhpPact/Consumer/Model/AbstractPact.php b/src/PhpPact/Consumer/Model/AbstractPact.php index 088f2160..a8abca50 100644 --- a/src/PhpPact/Consumer/Model/AbstractPact.php +++ b/src/PhpPact/Consumer/Model/AbstractPact.php @@ -15,6 +15,6 @@ abstract class AbstractPact public function __construct() { - $this->ffi = FFI::cdef(\file_get_contents(Scripts::getCode()), Scripts::getLibrary()); + $this->ffi = FFI::cdef(\file_get_contents(Scripts::getHeader()), Scripts::getLibrary()); } } diff --git a/src/PhpPact/Standalone/Installer/Model/Scripts.php b/src/PhpPact/Standalone/Installer/Model/Scripts.php index 7bfc3e29..b6bcae11 100644 --- a/src/PhpPact/Standalone/Installer/Model/Scripts.php +++ b/src/PhpPact/Standalone/Installer/Model/Scripts.php @@ -20,7 +20,7 @@ class Scripts /** * @return string */ - public static function getCode(): string + public static function getHeader(): string { return self::$destinationDir . '/bin/pact-ffi-headers/pact.h'; }