mirror of
https://github.com/barryvdh/ReflectionDocBlock.git
synced 2026-08-18 18:13:13 +00:00
drop asserts where not needed
This commit is contained in:
committed by
Jaap van Otterdijk
parent
193731a153
commit
5e1bad3628
@@ -56,9 +56,6 @@ final class DocBlock
|
||||
bool $isTemplateStart = false,
|
||||
bool $isTemplateEnd = false
|
||||
) {
|
||||
Assert::string($summary);
|
||||
Assert::boolean($isTemplateStart);
|
||||
Assert::boolean($isTemplateEnd);
|
||||
Assert::allIsInstanceOf($tags, Tag::class);
|
||||
|
||||
$this->summary = $summary;
|
||||
@@ -166,8 +163,6 @@ final class DocBlock
|
||||
*/
|
||||
public function getTagsByName(string $name)
|
||||
{
|
||||
Assert::string($name);
|
||||
|
||||
$result = [];
|
||||
|
||||
/** @var Tag $tag */
|
||||
@@ -191,8 +186,6 @@ final class DocBlock
|
||||
*/
|
||||
public function hasTag(string $name): bool
|
||||
{
|
||||
Assert::string($name);
|
||||
|
||||
/** @var Tag $tag */
|
||||
foreach ($this->getTags() as $tag) {
|
||||
if ($tag->getName() === $name) {
|
||||
|
||||
Reference in New Issue
Block a user