remove tests and validation that are now covered by typehints

This commit is contained in:
TomasVotruba
2017-11-30 10:27:01 +01:00
committed by Jaap van Otterdijk
parent 76b771c23e
commit 193731a153
37 changed files with 78 additions and 379 deletions
+3 -7
View File
@@ -87,7 +87,7 @@ final class DocBlockFactory implements DocBlockFactoryInterface
}
$parts = $this->splitDocBlock($this->stripDocComment($docblock));
list($templateMarker, $summary, $description, $tags) = $parts;
[$templateMarker, $summary, $description, $tags] = $parts;
return new DocBlock(
$summary,
@@ -218,7 +218,7 @@ final class DocBlockFactory implements DocBlockFactoryInterface
*
* @return DocBlock\Tag[]
*/
private function parseTagBlock(string $tags, Types\Context $context)
private function parseTagBlock(string $tags, Types\Context $context): array
{
$tags = $this->filterTagBlock($tags);
if (!$tags) {
@@ -252,11 +252,7 @@ final class DocBlockFactory implements DocBlockFactoryInterface
return $result;
}
/**
* @param $tags
* @return string
*/
private function filterTagBlock($tags): string
private function filterTagBlock($tags): ?string
{
$tags = trim($tags);
if (!$tags) {