Skip to content

Commit

Permalink
Fix: Use ::class pseudo-constant
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Jan 7, 2025
1 parent 26ec39c commit 44c7c4d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions composer-require-checker.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"symbol-whitelist": [
"array",
"bool",
"Doctrine\\ORM\\Mapping\\Entity",
"false",
"null",
"PhpParser\\Comment\\Doc",
Expand Down
3 changes: 2 additions & 1 deletion src/Classes/FinalRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

namespace Ergebnis\PHPStan\Rules\Classes;

use Doctrine\ORM;
use Ergebnis\PHPStan\Rules\ErrorIdentifier;
use PhpParser\Comment;
use PhpParser\Node;
Expand All @@ -37,7 +38,7 @@ final class FinalRule implements Rules\Rule
* @var list<class-string>
*/
private static array $whitelistedAttributes = [
'Doctrine\ORM\Mapping\Entity',
ORM\Mapping\Entity::class,
];
private bool $allowAbstractClasses;

Expand Down

0 comments on commit 44c7c4d

Please sign in to comment.