[php-src] Issue #8312: Add boolean assignment operators

From: Date: Fri, 15 Apr 2022 13:21:21 +0000
Subject: [php-src] Issue #8312: Add boolean assignment operators
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-241012@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/8312 Comment Author: iluuu1994 The code above is sub-optimal anyway, since the loop should stop once $result is false. ```php function test(array $a): bool { foreach($a as $element) { if (!$element-> test()) return false; } return true; } ``` I find the coercion that @cmb69 mentioned confusing too.

« previous php.bugs (#241012) next »