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 e36a3e0 commit 3a43aeeCopy full SHA for 3a43aee
.github/scripts/diffPrefixes.php
@@ -30,7 +30,13 @@
30
}
31
32
$pathWithLine = substr($diffLine, 1);
33
- [$path, $lineNumber] = explode(':', $pathWithLine);
+ $pathParts = explode(':', $pathWithLine);
34
+ $path = $pathParts[0];
35
+ $lineNumber = $pathParts[1] ?? null;
36
+ if ($lineNumber === null) {
37
+ echo $diffLine . "\n";
38
+ continue;
39
+ }
40
$oldFilePath = $oldDir . '/' . $path;
41
if (!is_file($oldFilePath)) {
42
continue;
0 commit comments