Skip to content

Commit

Permalink
Merge 892dd30 into 63a995c
Browse files Browse the repository at this point in the history
  • Loading branch information
iggyvolz committed Oct 10, 2019
2 parents 63a995c + 892dd30 commit 2193fbb
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/Fqsen.php
Expand Up @@ -48,9 +48,13 @@ public function __construct(string $fqsen)
);

if ($result === 0) {
throw new InvalidArgumentException(
sprintf('"%s" is not a valid Fqsen.', $fqsen)
);
if(strpos($fqsen, "\\class@anonymous") === 0) {
$matches=[null,null,$fqsen];
} else {
throw new InvalidArgumentException(
sprintf('"%s" is not a valid Fqsen.', $fqsen)
);
}
}

$this->fqsen = $fqsen;
Expand Down

0 comments on commit 2193fbb

Please sign in to comment.