Skip to content

Commit b1b3eb4

Browse files
committed
No exception on missing class name,
1 parent a988936 commit b1b3eb4

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/PHPFUI/InstaDoc/Controller.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,14 @@ public function getParameters() : array
456456
*/
457457
public function getMethodParameters(string $className, $methodName = '__construct') : string
458458
{
459-
$reflection = new \ReflectionClass($className);
459+
try
460+
{
461+
$reflection = new \ReflectionClass($className);
462+
}
463+
catch (\Exception $e)
464+
{
465+
return '';
466+
}
460467

461468
if (! $reflection->hasMethod($methodName))
462469
{

0 commit comments

Comments
 (0)