Skip to content

Remove calling to a parent that does not exists#57

Merged
cedric-anne merged 1 commit into
pluginsGLPI:developfrom
cedric-anne:bugfix/fix-inexistant-parent-call
Nov 12, 2019
Merged

Remove calling to a parent that does not exists#57
cedric-anne merged 1 commit into
pluginsGLPI:developfrom
cedric-anne:bugfix/fix-inexistant-parent-call

Conversation

@cedric-anne
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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