Skip to content

Commit 0466e4f

Browse files
committed
Fix job failures
1 parent 09e3821 commit 0466e4f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.php-cs-fixer.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@
5151
'single_line_throw' => false,
5252
'php_unit_method_casing' => false,
5353
'blank_line_between_import_groups' => false,
54-
'global_namespace_import' => false,
54+
'global_namespace_import' => false,
55+
'nullable_type_declaration_for_default_null_value' => false,
5556
])
5657
->setRiskyAllowed(true)
5758
->setFinder($finder);

src/Compiler/Compiler.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,8 @@ private function isCompilable($value) : string|bool
362362
if ($value instanceof \Closure) {
363363
return true;
364364
}
365-
if ($value instanceof \UnitEnum) {
365+
/** @psalm-suppress UndefinedClass */
366+
if ((\PHP_VERSION_ID >= 80100) && ($value instanceof \UnitEnum)) {
366367
return true;
367368
}
368369
if (is_object($value)) {

0 commit comments

Comments
 (0)