[wp-trac] [WordPress Trac] #57887: The WordPress core does not support calling non-static methods for hook filters and actions within a namespace
WordPress Trac
noreply at wordpress.org
Thu Mar 9 23:02:12 UTC 2023
#57887: The WordPress core does not support calling non-static methods for hook
filters and actions within a namespace
-------------------------------+-----------------------
Reporter: markcarbonell2013 | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: General | Version:
Severity: normal | Resolution: invalid
Keywords: | Focuses: rest-api
-------------------------------+-----------------------
Comment (by jrf):
@markcarbonell2013 Just FYI: as @TobiasBg said, this error is expected.
However, the error has nothing to do with WordPress itself. It is just how
PHP works.
If you'd like to read up on this some more, please have a look here in the
PHP manual:
https://www.php.net/manual/en/language.oop5.static.php#language.oop5.static.methods
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57887#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list