|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2020-01-13 13:28 UTC] nikic@php.net
-Status: Open
+Status: Duplicate
[2020-01-13 13:28 UTC] nikic@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 02:00:01 2025 UTC |
Description: ------------ In test env in our product sometimes caused Undefined variable $value with empty array But local don't reproduce Test script: --------------- <?php class Test { private const PRIVATE_ARRAY = []; public function run(): int { foreach (self::PRIVATE_ARRAY as $key => $value) { return $value; } return 1; } } (new Test())->run();