Skip to content

Commit

Permalink
Rename method getCode to getHeader
Browse files Browse the repository at this point in the history
  • Loading branch information
tienvx committed Mar 2, 2023
1 parent d6a9d0d commit ca46297
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/PhpPact/Consumer/Model/AbstractPact.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}
2 changes: 1 addition & 1 deletion src/PhpPact/Standalone/Installer/Model/Scripts.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}
Expand Down

0 comments on commit ca46297

Please sign in to comment.