bump tests to phpstan level 5 (#1922)

This commit is contained in:
Kevin Papst
2020-09-05 16:48:19 +02:00
committed by GitHub
parent b69ea0648c
commit ed528eb19a
35 changed files with 128 additions and 93 deletions

View File

@@ -23,7 +23,7 @@ class SearchTermTransformer implements DataTransformerInterface
*/
public function transform($searchTerm)
{
if (empty($searchTerm) || !$searchTerm instanceof SearchTerm) {
if (empty($searchTerm) || !($searchTerm instanceof SearchTerm)) {
return '';
}
@@ -33,7 +33,7 @@ class SearchTermTransformer implements DataTransformerInterface
/**
* Transforms a string to a SearchTerm object.
*
* @param string $searchTerm
* @param string|null $searchTerm
* @return SearchTerm|null
* @throws TransformationFailedException if object (issue) is not found
*/

View File

@@ -48,7 +48,7 @@ class TagArrayToStringTransformer implements DataTransformerInterface
/**
* Transforms a string to an array of tags.
*
* @param string $stringOfTags
* @param string|null $stringOfTags
*
* @return Tag[]
* @throws TransformationFailedException if object (issue) is not found