diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2020-06-09 09:43:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-09 09:43:27 +0200 |
commit | bacdfda537f200927dcee4c8e7162080f8a57eaf (patch) | |
tree | fd4a10838e4ad5776d87961663ed1022128880dd | |
parent | 9c2172f27e01d6a1bdff7b8fded5ae2d985ee68c (diff) | |
parent | cdcd61d4c80224570bff413c948019d109b099b0 (diff) | |
download | nextcloud-server-bacdfda537f200927dcee4c8e7162080f8a57eaf.tar.gz nextcloud-server-bacdfda537f200927dcee4c8e7162080f8a57eaf.zip |
Merge pull request #21332 from nextcloud/fix/ocp-since-checker
Use empty for the OCP @since checker
-rw-r--r-- | build/OCPSinceChecker.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build/OCPSinceChecker.php b/build/OCPSinceChecker.php index ff314170149..75ce9c97cbc 100644 --- a/build/OCPSinceChecker.php +++ b/build/OCPSinceChecker.php @@ -55,7 +55,7 @@ class SinceTagCheckVisitor extends \PhpParser\NodeVisitorAbstract { /** @var \PhpParser\Comment\Doc[] $comments */ $comments = $node->getAttribute('comments'); - if (count($comments) === 0) { + if (empty($comments)) { $this->errors[] = 'PHPDoc is needed for ' . $this->namespace . '\\' . $this->className . '::' . $node->name; return; } @@ -78,7 +78,7 @@ class SinceTagCheckVisitor extends \PhpParser\NodeVisitorAbstract { /** @var \PhpParser\Comment\Doc[] $comments */ $comments = $node->getAttribute('comments'); - if (count($comments) === 0) { + if (empty($comments)) { $this->errors[] = 'PHPDoc is needed for ' . $this->namespace . '\\' . $this->className . '::' . $node->name; return; } |