--TEST-- Inc/dec on bool: warning converted to exception --FILE-- getMessage(), PHP_EOL; } try { $value--; } catch (\Exception $e) { echo $e->getMessage(), PHP_EOL; } } ?> --EXPECT-- Warning: Increment on type bool has no effect, this will change in the next major version of PHP in Unknown(0) : eval() on line 1 Warning: Increment on type bool has no effect, this will change in the next major version of PHP in Unknown(0) : eval() on line 1 Warning: Increment on type bool has no effect, this will change in the next major version of PHP in Unknown(0) : eval() on line 1 Warning: Increment on type bool has no effect, this will change in the next major version of PHP in Unknown(0) : eval() on line 1