mirror of
https://github.com/barryvdh/ReflectionDocBlock.git
synced 2026-08-18 01:57:13 +00:00
No longer bubble tag exceptions to the top
When a tag has an invalid component to it it would cause a whole file to fail to parse. Instead we should consider invalid tags a nuisance but not worth breaking the whole parsing over. In this change I have added a try..catch that will prevent invalid tags from breaking the whole parsing process.
This commit is contained in:
@@ -191,7 +191,11 @@ final class StandardTagFactory implements TagFactory
|
|||||||
$this->getServiceLocatorWithDynamicParameters($context, $name, $body)
|
$this->getServiceLocatorWithDynamicParameters($context, $name, $body)
|
||||||
);
|
);
|
||||||
|
|
||||||
return call_user_func_array([$handlerClassName, 'create'], $arguments);
|
try {
|
||||||
|
return call_user_func_array([$handlerClassName, 'create'], $arguments);
|
||||||
|
} catch (\InvalidArgumentException $e) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user