|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2017-03-01 13:39 UTC] requinix@php.net
-Status: Open
+Status: Verified
[2017-03-01 17:05 UTC] pandenitz at mail dot ru
[2017-03-26 16:37 UTC] tpunt@php.net
-Assigned To:
+Assigned To: tpunt
[2017-03-27 08:10 UTC] pandenitz at mail dot ru
-Summary: Null coalescing operator issue with undeclared static
class properties
+Summary: Null coalescing operator fails for undeclared static
class properties & constant
[2017-03-27 08:10 UTC] pandenitz at mail dot ru
[2017-03-27 19:11 UTC] tpunt@php.net
[2017-03-28 06:08 UTC] pandenitz at mail dot ru
[2017-04-09 13:31 UTC] nikic@php.net
-Summary: Null coalescing operator fails for undeclared static
class properties & constant
+Summary: Null coalescing operator fails for undeclared static
class properties
[2017-04-10 21:21 UTC] tpunt@php.net
-Status: Verified
+Status: Closed
[2017-04-11 07:08 UTC] pandenitz at mail dot ru
[2017-04-11 13:26 UTC] tpunt@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 12:00:01 2025 UTC |
Description: ------------ Null coalescing operator doesn't check isset() for static properties Test script: --------------- abstract class Test { public static function get() { return static::$test ?? true; } public static function get2() { return isset(static::$test) ? static::$test : true; } } // Access to undeclared static property Test::get(); // Works Test::get2(); Expected result: ---------------- No errors Actual result: -------------- Error