Skip to content

Commit c57e7cd

Browse files
committed
🚨 Fix always true assert (phpstan became smarter)
1 parent 498e3f4 commit c57e7cd

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/MappingEntry.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
use function array_count_values;
88
use function array_key_first;
99
use function arsort;
10-
use function assert;
11-
use function is_string;
1210

1311
class MappingEntry
1412
{
@@ -33,9 +31,7 @@ public function getMostCommonName(): string
3331
{
3432
$values = array_count_values($this->names);
3533
arsort($values);
36-
$mostCommonName = array_key_first($values);
37-
assert(is_string($mostCommonName));
3834

39-
return $mostCommonName;
35+
return array_key_first($values);
4036
}
4137
}

0 commit comments

Comments
 (0)