We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 498e3f4 commit c57e7cdCopy full SHA for c57e7cd
1 file changed
src/MappingEntry.php
@@ -7,8 +7,6 @@
7
use function array_count_values;
8
use function array_key_first;
9
use function arsort;
10
-use function assert;
11
-use function is_string;
12
13
class MappingEntry
14
{
@@ -33,9 +31,7 @@ public function getMostCommonName(): string
33
31
34
32
$values = array_count_values($this->names);
35
arsort($values);
36
- $mostCommonName = array_key_first($values);
37
- assert(is_string($mostCommonName));
38
39
- return $mostCommonName;
+ return array_key_first($values);
40
}
41
0 commit comments