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

From: Date: Wed, 06 Apr 2022 12:10:39 +0000
Subject: [php-src] Issue #8312: Add boolean assignment operators
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-240701@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/8312 Author: theking2 ### Description Currently there are no ||= &&= operators. A bitwise &= |= do exist, but will change the type of the operand. Use case in pseudo ``` function test(array $a): bool { $result = true; foreach($a as $element) { $result &= $element-> test(); } return $result; } ```

« previous php.bugs (#240701) next »