Skip to content

Error when create a Change: [SOLVED] #140

Description

@ricardofullsoft

I've got the message:

glpi.CRITICAL: *** Uncaught PHP Exception TypeError: "GlpiPlugin\Behaviors\Change::beforeAdd(): Argument #1 ($change) must be of type GlpiPlugin\Behaviors\Change, Change given, called in ./src/Plugin.php on line 1759" at Change.php line 47

The solution is:
On file src/Change.php, line 47:

-    public static function beforeAdd(Change $change)
+    public static function beforeAdd(\Change $change)

Activity

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

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