Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Difference between latest release and master #622

Open
matejdr opened this issue Apr 19, 2024 · 0 comments
Open

Difference between latest release and master #622

matejdr opened this issue Apr 19, 2024 · 0 comments

Comments

@matejdr
Copy link

matejdr commented Apr 19, 2024

Hi, just got an error Use of "parent" in callables is deprecated today.
Then I check the latest code in master and the problem was fixed several months ago馃憤
But the change does not reflect in the latest release, any reason for that?

https://github.com/phpspec/prophecy/blob/master/src/Prophecy/Doubler/ClassPatch/DisableConstructorPatch.php
vs
https://github.com/phpspec/prophecy/blob/v1.19.0/src/Prophecy/Doubler/ClassPatch/DisableConstructorPatch.php

$constructor->setCode(<<<PHP
if (0 < func_num_args()) {
    call_user_func_array(array(parent::class, '__construct'), func_get_args());
}
PHP
        );

vs

$constructor->setCode(<<<PHP
if (0 < func_num_args()) {
    call_user_func_array(array('parent', '__construct'), func_get_args());
}
PHP
        );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant