File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 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 );
Original file line number Diff line number Diff 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 )) {
You can’t perform that action at this time.
0 commit comments