From c9ac4aa729c790e9d0c0360a19dddf70147d8ab0 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 26 Feb 2019 11:15:52 +0100 Subject: import from Fedora --- phpdoc-php-warning-count-fix.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 phpdoc-php-warning-count-fix.patch (limited to 'phpdoc-php-warning-count-fix.patch') diff --git a/phpdoc-php-warning-count-fix.patch b/phpdoc-php-warning-count-fix.patch new file mode 100644 index 0000000..a307863 --- /dev/null +++ b/phpdoc-php-warning-count-fix.patch @@ -0,0 +1,13 @@ +diff --git a/src/phpDocumentor/Plugin/Core/Descriptor/Validator/Constraints/Functions/IsArgumentInDocBlockValidator.php b/src/phpDocumentor/Plugin/Core/Descriptor/Validator/Constraints/Functions/IsArgumentInDocBlockValidator.php +index 1e31c932..4baf2fb4 100644 +--- a/src/phpDocumentor/Plugin/Core/Descriptor/Validator/Constraints/Functions/IsArgumentInDocBlockValidator.php ++++ b/src/phpDocumentor/Plugin/Core/Descriptor/Validator/Constraints/Functions/IsArgumentInDocBlockValidator.php +@@ -30,7 +30,7 @@ class IsArgumentInDocBlockValidator extends ConstraintValidator + */ + public function validate($value, Constraint $constraint) + { +- if ($value instanceof ValidationValueObject && count($value->argument) > 0) { ++ if ($value instanceof ValidationValueObject && $value->argument instanceof Countable && count($value->argument) > 0) { + $argument = $value->argument; + /* @var $params \phpDocumentor\Descriptor\Collection */ + $params = $value->parameters; -- cgit