You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The CLI add-on generator utilizes the extension hooks in the documentation, some of which are documented as sending in $this as the parameter. The add-on generator uses this in the enum, producing invalid PHP.
For example, I create an extension using the sessions_end hook:
The documentation states that $this is sent in:
However, this is invalid PHP:
How To Reproduce
Create an extension on the CLI utilizing a hook that has $this labeled as a parameter in the documentation.
Lint the created extension.
Error Messages PHP Fatal error: Cannot use $this as parameter
Possible Solution
Change $this to $obj in the associated extension hooks.
The text was updated successfully, but these errors were encountered:
Description of the problem
The CLI add-on generator utilizes the extension hooks in the documentation, some of which are documented as sending in
$this
as the parameter. The add-on generator uses this in the enum, producing invalid PHP.For example, I create an extension using the
sessions_end
hook:The documentation states that
$this
is sent in:However, this is invalid PHP:
How To Reproduce
$this
labeled as a parameter in the documentation.Error Messages
PHP Fatal error: Cannot use $this as parameter
Possible Solution
Change $this to $obj in the associated extension hooks.
The text was updated successfully, but these errors were encountered: