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

Small issue : PHP warning on the 0.9.6 version #29

Open
Anthn opened this issue Apr 3, 2019 · 0 comments
Open

Small issue : PHP warning on the 0.9.6 version #29

Anthn opened this issue Apr 3, 2019 · 0 comments

Comments

@Anthn
Copy link

Anthn commented Apr 3, 2019

Hello,

Since i've updated the dpo-register plugin with the 0.9.6 version on a 9.4.1.1 GLPI i keep having this PHP warning in debug mode :
PHP Warning: Declaration of PluginDporegisterProcessing::showActorsPartForm($ID, $options = Array) should be compatible with CommonITILObject::showActorsPartForm($ID, array $options) in /var/www/html/glpi/plugins/dporegister/inc/processing.class.php at line 0

I think this is just related to the declaration of $options in the processing.class.php file.

So, I just tried to replace it like this :

PluginDporegisterProcessing::showActorsPartForm($ID, Array $options)
instead of
PluginDporegisterProcessing::showActorsPartForm($ID, $options = Array)

It seems to correct the issue as the PHP warning is not displayed so i just wanted to share it with everyone.

Just to conclude, this issue didn't seem to block me with the dpo-register plugin but i think it's better when there are 0 warnings !

It could be nice if you could check this, maybe this issue only happens to me.

Thanks.

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

No branches or pull requests

1 participant