summaryrefslogtreecommitdiffstats
path: root/phpdoc-php-warning-count-fix.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2019-02-26 11:15:52 +0100
committerRemi Collet <remi@remirepo.net>2019-02-26 11:15:52 +0100
commitc9ac4aa729c790e9d0c0360a19dddf70147d8ab0 (patch)
tree325b6c96a92e6a41840b527337f6ac8e0afe357f /phpdoc-php-warning-count-fix.patch
import from Fedora
Diffstat (limited to 'phpdoc-php-warning-count-fix.patch')
-rw-r--r--phpdoc-php-warning-count-fix.patch13
1 files changed, 13 insertions, 0 deletions
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;