You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This isn't really an issue of Invoker, but should_invoke_callable_with_optional_parameter_before_required_parameter fails on PHP 8.2 due to PHP tightening up optional-before-required param behavior. If that's desired functionality in Invoker even >= PHP 8.2 OTOH, code changes will be required. But skipping that test on 8.2, documenting the change, and updating the test grid to include 8.1 and 8.2, seems like a reasonable enough response from here.
The text was updated successfully, but these errors were encountered:
But skipping that test on 8.2, documenting the change, and updating the test grid to include 8.1 and 8.2, seems like a reasonable enough response from here.
Sounds good, the package shouldn't aim to rewrite native PHP behavior.
This may be what is causing one test to fail on recent php versions
There was 1 error:
1) Invoker\Test\InvokerTest::should_invoke_callable_with_optional_parameter_before_required_parameter
Invoker\Exception\NotEnoughParametersException: Unable to invoke the callable because no value was given for parameter 1 ($baz)
/home/runner/work/Invoker/Invoker/src/Invoker.php:67
/home/runner/work/Invoker/Invoker/tests/InvokerTest.php:[22](https://github.com/williamdes/Invoker/actions/runs/6120452457/job/16612348312#step:6:23)3
This isn't really an issue of Invoker, but should_invoke_callable_with_optional_parameter_before_required_parameter fails on PHP 8.2 due to PHP tightening up optional-before-required param behavior. If that's desired functionality in Invoker even >= PHP 8.2 OTOH, code changes will be required. But skipping that test on 8.2, documenting the change, and updating the test grid to include 8.1 and 8.2, seems like a reasonable enough response from here.
The text was updated successfully, but these errors were encountered: