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
The new form of these callables is no longer context-dependent. It will refer to the self/parent/static scope of where the callable has been created, rather than where is will be called.
During a preliminary test run for a project against PHP 8.2, I noticed that Mockery is heavily affected by this issue, with over half of the tests in the project I did the test run on erroring out on a Use of "parent" in callables is deprecated error.
There was 1 error:
1) Jrf\Mockery\Scenario\Tests\FooTest::testSplitString with data set "simple test case" ('test,string', array('test', 'string'))
Use of "parent" in callables is deprecated
/home/runner/work/bug-report-reproduction-scenarios/bug-report-reproduction-scenarios/tests/FooTest.php:33
The text was updated successfully, but these errors were encountered:
Description
PHP 8.2 is slated to deprecate partially supported callables.
From the RFC:
During a preliminary test run for a project against PHP 8.2, I noticed that Mockery is heavily affected by this issue, with over half of the tests in the project I did the test run on erroring out on a
Use of "parent" in callables is deprecated
error.How to reproduce
mockery/php-8.2-error-with-partial-callables
branchcomposer install
vendor/bin/phpunit
on PHP 8.2Or examine the results of the workflows runs for this branch: https://github.com/jrfnl/bug-report-reproduction-scenarios/actions/runs/1985112787
Error
The text was updated successfully, but these errors were encountered: