Deprecated dynamic properties in yii\framework\gii\components\Pear\Text\Diff\Engine\native.php .
mdeweerd opened this issue · 6 comments
mdeweerd commented
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
I ran into this when performing a 'diff' in the yii code generator.
Non of the properties are defined in native.php.
I dropped in the following definitions, more may be needed:
public $xchanged;
public $ychanged;
public $xv;
public $yv;
public $xind;
public $yind;
public $seq;
public $in_seq;
public $lcs;
samdark commented
What Yii version do you have?
mdeweerd commented
Yii v1.1.28
This is related to assignments to class properties that are not declared:
mdeweerd commented
Wordpress has an evolved version:
https://github.com/WordPress/WordPress/blob/master/wp-includes/Text/Diff/Engine/native.php
mdeweerd commented
I opened a PR in upstream - there were also some changes to replace looping over list() the approach for the latter is different than that in Yii where unshift was applied.
marcovtwout commented
I created a PR and applied changes even though the upstream PR is not yet merged.
marcovtwout commented
Fixed with #4536