Skip to content

Commit 75709ca

Browse files
staabmsebastianbergmann
authored andcommitted
Fix "PHP Warning: Uninitialized string offset 0"
1 parent 741f67f commit 75709ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Metadata/Api/DataProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ private function dataProvidedByTestWithAnnotation(string $className, string $met
256256
foreach (explode("\n", $annotationContent) as $candidateRow) {
257257
$candidateRow = trim($candidateRow);
258258

259-
if ($candidateRow[0] !== '[') {
259+
if ($candidateRow === '' || $candidateRow[0] !== '[') {
260260
break;
261261
}
262262

0 commit comments

Comments
 (0)