Skip to content

Commit 7cfff67

Browse files
Ignore empty.notAllowed errors
1 parent 407e1d8 commit 7cfff67

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/Utils/UnifiedDiffAssertTrait.php

+2
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,10 @@ private function unifiedDiffAssertHunkHeader(string $line, string $message): arr
271271

272272
return [
273273
(int) $matches[1],
274+
/** @phpstan-ignore empty.notAllowed */
274275
empty($matches[2]) ? 1 : (int) substr($matches[2], 1),
275276
(int) $matches[3],
277+
/** @phpstan-ignore empty.notAllowed */
276278
empty($matches[4]) ? 1 : (int) substr($matches[4], 1),
277279
];
278280
}

0 commit comments

Comments
 (0)