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

Remove calling to a parent that does not exists #57

Merged

Conversation

cedric-anne
Copy link
Contributor

On PHP 7.4, following deprecation message is triggered when trying to use plugin massive actions:
PHP Deprecated function: Cannot use "parent" when current class scope has no parent in /var/www/glpi/plugins/barcode/inc/qrcode.class.php at line 332 PHP Deprecated function: Cannot use "parent" when current class scope has no parent in /var/www/glpi/plugins/barcode/inc/qrcode.class.php at line 353 PHP Deprecated function: Cannot use "parent" when current class scope has no parent in /var/www/glpi/plugins/barcode/inc/qrcode.class.php at line 418

Indeed, PluginBarcodeBarcode and PluginBarcodeQRcode have no parent class.

@cedric-anne cedric-anne added the bug label Nov 8, 2019
@cedric-anne cedric-anne added this to the 2.4.1 milestone Nov 8, 2019
Copy link
Contributor

@trasher trasher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be better that those classes should extends CommonGLPI

@cedric-anne
Copy link
Contributor Author

I think it would be better that those classes should extends CommonGLPI

These methods are declared in CommonDBTM, not in CommonGLPI, and these classes are not related to any DB item.

@cedric-anne cedric-anne merged commit 411ca01 into pluginsGLPI:develop Nov 12, 2019
@cedric-anne cedric-anne deleted the bugfix/fix-inexistant-parent-call branch November 12, 2019 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants