Skip to content

Small issue : PHP warning on the 0.9.6 version #29

@Anthn

Description

@Anthn

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions