Skip to content

Commit

Permalink
Additional validation
Browse files Browse the repository at this point in the history
  • Loading branch information
akadlec committed Jan 16, 2022
1 parent 4d19efd commit 5dc43d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Application/Controller/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ private function initGlobalParameters(): void
*/
private function parseAnnotation(Reflector $ref, string $name)
{
if (!preg_match_all('#[\\s*]@' . preg_quote($name, '#') . '(?:\(\\s*([^)]*)\\s*\)|\\s|$)#', $ref->getDocComment(), $m)) {
if (!$ref->getDocComment() || !preg_match_all('#[\\s*]@' . preg_quote($name, '#') . '(?:\(\\s*([^)]*)\\s*\)|\\s|$)#', $ref->getDocComment(), $m)) {
return false;
}

Expand Down

0 comments on commit 5dc43d2

Please sign in to comment.