Skip to content

Commit fd8d787

Browse files
committed
fix(since): Import PhpParser classes
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
1 parent 0f762a0 commit fd8d787

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

build/psalm/OcpSinceChecker.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
<?php
22

33
declare(strict_types=1);
4+
45
/**
56
* SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
67
* SPDX-License-Identifier: AGPL-3.0-only
78
*/
9+
810
use PhpParser\Node\Stmt;
11+
use PhpParser\Node\Stmt\ClassConst;
912
use PhpParser\Node\Stmt\ClassLike;
13+
use PhpParser\Node\Stmt\ClassMethod;
14+
use PhpParser\Node\Stmt\EnumCase;
1015
use Psalm\CodeLocation;
1116
use Psalm\DocComment;
1217
use 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');

0 commit comments

Comments
 (0)