Skip to content

Commit

Permalink
Refernce php core attr via ::class
Browse files Browse the repository at this point in the history
  • Loading branch information
tugmaks committed Mar 5, 2024
1 parent bd0f004 commit ec3264b
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/ComposerRequireChecker/Cli/Options.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@

namespace ComposerRequireChecker\Cli;

use AllowDynamicProperties;
use Attribute;
use ComposerRequireChecker\FileLocator\LocateComposerPackageSourceFiles;
use InvalidArgumentException;
use Override;
use ReturnTypeWillChange;
use SensitiveParameter;

use function array_merge;
use function array_unique;
Expand Down Expand Up @@ -37,11 +42,11 @@ class Options
];

private const PHP_ATTRIBUTES = [
'AllowDynamicProperties',
'Attribute',
'Override',
'ReturnTypeWillChange',
'SensitiveParameter',
AllowDynamicProperties::class,
Attribute::class,
Override::class,
ReturnTypeWillChange::class,
SensitiveParameter::class,
];

/** @var array<string> */
Expand Down

0 comments on commit ec3264b

Please sign in to comment.