We should not call a non-static method statically

This integrates user note 126567.
This commit is contained in:
Christoph M. Becker 2021-11-11 12:03:36 +01:00
parent 7fcb23ea98
commit 87a037014f
No known key found for this signature in database
GPG key ID: D66C9593118BCCB6

View file

@ -76,7 +76,7 @@ runkit7_method_rename(
);
// output renamed function
echo Example::bar();
echo (new Example)->bar();
?>
]]>
</programlisting>