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 63e04ac commit 1c85032Copy full SHA for 1c85032
src/References.php
@@ -68,13 +68,10 @@ public function mergeWith(References $references): References
68
$merged = clone $this;
69
70
foreach ($references as $filename => $lines) {
71
- if (empty($lines)) {
72
- //Check the $filename type
73
- if (gettype($filename) == "integer") {
74
- //Set string
75
- $filename = strval($filename);
76
- }
77
-
+ //Set filename always to string
+ $filename = (string) $filename;
+
+ if (empty($lines)) {
78
$merged->add($filename);
79
continue;
80
}
0 commit comments