File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<?php
22
33declare (strict_types=1 );
4+
45/**
56 * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
67 * SPDX-License-Identifier: AGPL-3.0-only
78 */
9+
810use PhpParser \Node \Stmt ;
11+ use PhpParser \Node \Stmt \ClassConst ;
912use PhpParser \Node \Stmt \ClassLike ;
13+ use PhpParser \Node \Stmt \ClassMethod ;
14+ use PhpParser \Node \Stmt \EnumCase ;
1015use Psalm \CodeLocation ;
1116use Psalm \DocComment ;
1217use Psalm \Exception \DocblockParseException ;
@@ -34,7 +39,6 @@ public static function afterClassLikeVisit(AfterClassLikeVisitEvent $event): voi
3439 } else {
3540 self ::checkClassComment ($ classLike , $ statementsSource );
3641 }
37-
3842 foreach ($ classLike ->stmts as $ stmt ) {
3943 if ($ stmt instanceof ClassConst) {
4044 self ::checkStatementComment ($ stmt , $ statementsSource , 'constant ' );
You can’t perform that action at this time.
0 commit comments