Skip to content

Commit 2a1a947

Browse files
author
Oscar Otero
authored
Merge pull request #260 from Darkmet98/master
Fixed integer bug in filename type from references
2 parents 4d96cd6 + 1c85032 commit 2a1a947

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/References.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,10 @@ public function mergeWith(References $references): References
6868
$merged = clone $this;
6969

7070
foreach ($references as $filename => $lines) {
71-
if (empty($lines)) {
71+
//Set filename always to string
72+
$filename = (string) $filename;
73+
74+
if (empty($lines)) {
7275
$merged->add($filename);
7376
continue;
7477
}

0 commit comments

Comments
 (0)