We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cad86c commit 11808efCopy full SHA for 11808ef
1 file changed
src/Util/Str.php
@@ -28,7 +28,7 @@ public static function vsprintfOrNull(string $message, array $values): ?string
28
29
foreach ($values as $value) {
30
// If the value is not a scalar or null, we cannot safely format it
31
- if (!is_scalar($value) && !is_null($value)) {
+ if (!\is_scalar($value) && $value !== null) {
32
return null;
33
}
34
0 commit comments