diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon
index d0ef6d35f6..a9b8f8536c 100644
--- a/phpstan-baseline.neon
+++ b/phpstan-baseline.neon
@@ -610,6 +610,11 @@ parameters:
count: 1
path: src/Faker/ORM/Spot/Populator.php
+ -
+ message: "#^Class UnitEnum not found\\.$#"
+ count: 2
+ path: src/Faker/Provider/Base.php
+
-
message: """
#^Instantiation of deprecated class Faker\\\\DefaultGenerator\\:
diff --git a/psalm.baseline.xml b/psalm.baseline.xml
index f0d3b78357..277230f16a 100644
--- a/psalm.baseline.xml
+++ b/psalm.baseline.xml
@@ -142,6 +142,10 @@
[static::class, 'randomDigit']
+
+ \UnitEnum
+ \UnitEnum
+
Closure