Skip to content

Commit

Permalink
Fix php 7.4 builds
Browse files Browse the repository at this point in the history
  • Loading branch information
acharron-hl committed Dec 15, 2023
1 parent ace9101 commit a969e34
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ jobs:
- name: Composer Install
run: composer install -o
- name: PHPUnit
run: ./vendor/bin/phpunit -c ./phpunit.xml.dist
run: |
php -v
./vendor/bin/phpunit -c ./phpunit.xml.dist
- name: Static Analysis
run: ./vendor/bin/psalm
prettier:
Expand Down
2 changes: 1 addition & 1 deletion src/Callback.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function __construct(callable $callback)
/**
* {@inheritdoc}
*/
public function resolve(Container $container, mixed $instance = null)
public function resolve(Container $container, $instance = null)
{
return call_user_func($this->callback, $container, $instance);
}
Expand Down
2 changes: 1 addition & 1 deletion src/ReferenceInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ interface ReferenceInterface
* @param mixed|null $instance If the reference is being resolved on an already instantiated object it will be passed here.
* @return mixed Returns the resolved reference.
*/
public function resolve(Container $container, mixed $instance = null);
public function resolve(Container $container, $instance = null);
}

0 comments on commit a969e34

Please sign in to comment.