diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 61c7bd6a..05d36186 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -10,6 +10,8 @@ on: - 'phpunit.xml.dist' push: + branches: + - master paths-ignore: - 'docs/**' - 'README.md' diff --git a/composer.json b/composer.json index e22264e0..4f334634 100644 --- a/composer.json +++ b/composer.json @@ -39,7 +39,7 @@ "roave/infection-static-analysis-plugin": "^1.18", "slope-it/clock-mock": "^0.4.0", "spatie/phpunit-watcher": "^1.23", - "vimeo/psalm": "^4.30|^5.3", + "vimeo/psalm": "^5.26.1", "yiisoft/di": "^1.2" }, "suggest": { diff --git a/src/Item.php b/src/Item.php index 88d87b62..10f90099 100644 --- a/src/Item.php +++ b/src/Item.php @@ -10,7 +10,14 @@ */ abstract class Item { + /** + * @psalm-suppress MissingClassConstType It needs for PHP <= 8.2 + */ public const TYPE_ROLE = 'role'; + + /** + * @psalm-suppress MissingClassConstType It needs for PHP <= 8.2 + */ public const TYPE_PERMISSION = 'permission'; /**