Skip to content

Commit 7c4877a

Browse files
committed
added more cases fro nullsy functions
1 parent 071c938 commit 7c4877a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

generator/src/DocPage.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@ public function detectNullsyFunction(): bool
124124
if (preg_match('/&null;\s+on\s+failure/', $file)) {
125125
return true;
126126
}
127+
if (preg_match('/&null;\s+if\s+an\s+error\s+occurs/', $file)) {
128+
return true;
129+
}
127130

128131
return false;
129132
}

0 commit comments

Comments
 (0)