Skip to content

Commit 4283b51

Browse files
committed
Return NULL as expected
1 parent 44a9d8a commit 4283b51

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Spamer/DependencyMocker/ReflectionHelper.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ class ReflectionHelper
2323
public static function parseAnnotation(
2424
\ReflectionProperty $ref,
2525
string $name
26-
) : string
26+
) : ?string
2727
{
2828
if (preg_match("#[\\s*]@$name(?:\\s++([^@]\\S*)?|$)#", trim($ref->getDocComment(), '/*'), $m)) {
29-
return $m[1] ?? '';
29+
return $m[1] ?? NULL;
3030
}
3131

32-
return '';
32+
return NULL;
3333
}
3434

3535

0 commit comments

Comments
 (0)