-
Notifications
You must be signed in to change notification settings - Fork 12
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Deprecated: Creation of dynamic property + loops for $matches #8
Conversation
Fixes (PHP7.4.X): Deprecated: Creation of dynamic property Text_Diff_Engine_native::$xchanged is deprecated .../yii\framework\gii\components\Pear\Text\Diff\Engine\native.php on line 41 Copied from https://github.com/WordPress/WordPress/blob/master/wp-includes/Text/Diff/Engine/native.php. Similar fix as https://github.com/mdeweerd/yii/blob/mdw/framework/gii/components/Pear/Text/Diff/Engine/native.php#L32-L40 . Also copied extra fix replacing loop over list(). Applied `phpcbf --standard=PEAR native.php` resulting in some code formatting changes.
I rebased this PR to the master branch. |
…on of dynamic property Text_Diff_Engine_native::$xchanged is deprecated" on PHP 8.2
This PR fixes yiisoft/yii#4534 |
Can you review the failed tests, and if it's a matter of dropping support for those old versions of PHP, set an appropriate min version/remove them from the suite> |
I removed testing the versions <PHP5.6 and added PHP8.0 to PHP8.3 . IMHO the versions <PHP5.6 fail because the environment/include paths would need to be defined differently. Except for the .travis.yml file which seems unused, I could not find other original files where the minimum version is mentionned. |
Fixes (PHP7.4.X): Deprecated: Creation of dynamic property Text_Diff_Engine_native::$xchanged is deprecated .../yii\framework\gii\components\Pear\Text\Diff\Engine\native.php on line 41
Copied from https://github.com/WordPress/WordPress/blob/master/wp-includes/Text/Diff/Engine/native.php. Similar fix as https://github.com/mdeweerd/yii/blob/mdw/framework/gii/components/Pear/Text/Diff/Engine/native.php#L32-L40 .
Also copied extra fix replacing loop over list().
Applied
phpcbf --standard=PEAR native.php
resulting in some code formatting changes.FYI: https://github.com/WordPress/WordPress/blob/master/wp-includes/Text/Diff/Renderer/inline.php seems has some functional changes that might be worth considering upstream.