1--TEST--
2Inc/dec on bool: warning converted to exception
3--FILE--
4<?php
5
6set_error_handler(function($severity, $m) {
7    throw new Exception($m, $severity);
8});
9
10$values = [false, true];
11foreach ($values as $value) {
12    try {
13        $value++;
14    } catch (\Exception $e) {
15        echo $e->getMessage(), PHP_EOL;
16    }
17    try {
18        $value--;
19    } catch (\Exception $e) {
20        echo $e->getMessage(), PHP_EOL;
21    }
22}
23?>
24--EXPECT--
25Increment on type bool has no effect, this will change in the next major version of PHP
26Decrement on type bool has no effect, this will change in the next major version of PHP
27Increment on type bool has no effect, this will change in the next major version of PHP
28Decrement on type bool has no effect, this will change in the next major version of PHP
29