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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecated dynamic properties in yii\framework\gii\components\Pear\Text\Diff\Engine\native.php . #4534

Closed
mdeweerd opened this issue Sep 3, 2023 · 6 comments

Comments

@mdeweerd
Copy link
Contributor

mdeweerd commented Sep 3, 2023

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
Copy link
Member

samdark commented Sep 3, 2023

What Yii version do you have?

@mdeweerd
Copy link
Contributor Author

mdeweerd commented Sep 3, 2023

Yii v1.1.28

This is related to assignments to class properties that are not declared:

https://github.com/yiisoft/yii/blob/1.1.28/framework/gii/components/Pear/Text/Diff/Engine/native.php#L41-L43 .

@mdeweerd
Copy link
Contributor Author

mdeweerd commented Sep 3, 2023

@mdeweerd
Copy link
Contributor Author

mdeweerd commented Sep 3, 2023

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.

pear/Text_Diff#8

@marcovtwout
Copy link
Member

I created a PR and applied changes even though the upstream PR is not yet merged.

@marcovtwout
Copy link
Member

Fixed with #4536

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants