mirror of
https://github.com/nextcloud/server.git
synced 2026-06-14 19:20:35 -04:00
Merge pull request #21332 from nextcloud/fix/ocp-since-checker
Use empty for the OCP @since checker
This commit is contained in:
commit
bacdfda537
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue