Skip to content

Commit 85bb2bf

Browse files
committed
resolve feedback
Addresses phpstan#3613 (comment)
1 parent c2523e7 commit 85bb2bf

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/Type/IntersectionType.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -344,13 +344,12 @@ private function describeItself(VerbosityLevel $level, bool $skipAccessoryTypes)
344344
|| $type instanceof AccessoryLowercaseStringType
345345
|| $type instanceof AccessoryUppercaseStringType
346346
) {
347-
if ($type instanceof AccessoryLowercaseStringType && !$level->isPrecise()) {
347+
if (
348+
($type instanceof AccessoryLowercaseStringType || $type instanceof AccessoryUppercaseStringType)
349+
&& !$level->isPrecise()
350+
) {
348351
continue;
349352
}
350-
if ($type instanceof AccessoryUppercaseStringType && !$level->isPrecise()) {
351-
continue;
352-
}
353-
354353
if ($type instanceof AccessoryNonFalsyStringType) {
355354
$nonFalsyStr = true;
356355
}

0 commit comments

Comments
 (0)