Fix instance named constructor

In MethodNotFoundInClassException.
parent 3e9dc45e
......@@ -22,7 +22,7 @@ use Hgraca\AppMapper\Infrastructure\Parser\NikicPhpParser\Visitor\TypeCollection
final class MethodNotFoundInClassException extends ParserException
{
public function constructFromFqcn(string $methodName, string $classFqcn): self
public static function constructFromFqcn(string $methodName, string $classFqcn): self
{
return new self("Method '$methodName' not found in class '$classFqcn'.");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment