|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2021-01-06 13:05 UTC] cmb@php.net
-Status: Open
+Status: Not a bug
-Assigned To:
+Assigned To: cmb
[2021-01-06 13:05 UTC] cmb@php.net
[2021-01-06 13:32 UTC] nikic@php.net
[2021-01-06 13:40 UTC] cmb@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 13 05:00:01 2025 UTC |
Description: ------------ Trying the following expression: $entity instanceof (static::BASE_CLASS) I get PHP Parse error: syntax error, unexpected '(' Test script: --------------- $entity instanceof (static::BASE_CLASS) Expected result: ---------------- Even if this is on purpose, or documented, it's not the expected, intuitive behavior. instanceof operator should have no problems with evaluating the right operand Actual result: -------------- PHP Parse error: syntax error, unexpected '('