Conditions | 6 |
Paths | 4 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
37 | function strIncrement85(int $version, int $errno, string $errstr, string $filename): bool |
||
38 | { |
||
39 | if ($version < 80500 || $errno !== E_DEPRECATED) { |
||
40 | return false; |
||
41 | } |
||
42 | if (preg_match('/Increment on non-numeric string/', $errstr) === 1) { |
||
43 | return true; |
||
44 | } |
||
45 | if (preg_match('/canonical/', $errstr) === 1 && preg_match('/mitoteam/', $filename) === 1) { |
||
46 | return true; |
||
47 | } |
||
48 | |||
49 | return false; |
||
50 | } |
||
55 |