← All changes
|
vendor/rosell-dk/webp-convert/src/Convert/Converters/BaseTraits/WarningLoggerTrait.php
+4
-1
3.4.1
→
trunk
View file →
| @@ -78,9 +78,8 @@ | ||
| 78 | 78 | |
| 79 | 79 | $errorTypes = [ |
| 80 | 80 | E_WARNING => "Warning", |
| 81 | 81 | E_NOTICE => "Notice", |
| 82 | - E_STRICT => "Strict Notice", | |
| 83 | 82 | E_DEPRECATED => "Deprecated", |
| 84 | 83 | E_USER_DEPRECATED => "User Deprecated", |
| 85 | 84 | |
| 86 | 85 | /* |
| @@ -94,8 +93,12 @@ | ||
| 94 | 93 | trigger_error('Your version of Gd is very old', E_USER_WARNING); |
| 95 | 94 | in that case, remember to add them to this array |
| 96 | 95 | */ |
| 97 | 96 | ]; |
| 97 | + | |
| 98 | + if (PHP_VERSION_ID < 70400) { | |
| 99 | + $errorTypes[E_STRICT] = "Strict Notice"; | |
| 100 | + } | |
| 98 | 101 | |
| 99 | 102 | if (isset($errorTypes[$errno])) { |
| 100 | 103 | $errType = $errorTypes[$errno]; |
| 101 | 104 | } else { |