From d9289390348c2bd3b61fcc21f74bb118a15a0ddb Mon Sep 17 00:00:00 2001 From: Tigrov Date: Mon, 26 Aug 2024 15:53:42 +0700 Subject: [PATCH] Remove `psalm83.xml` --- .github/workflows/static.yml | 10 +--------- composer.json | 2 +- psalm83.xml | 22 ---------------------- src/TransactionalInterface.php | 12 ++++++++++++ 4 files changed, 14 insertions(+), 32 deletions(-) delete mode 100644 psalm83.xml diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 34f1828f2..cd75c5973 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -27,12 +27,4 @@ jobs: os: >- ['ubuntu-latest'] php: >- - ['8.1', '8.2'] - psalm83: - uses: yiisoft/actions/.github/workflows/psalm.yml@master - with: - psalm-config: psalm83.xml - os: >- - ['ubuntu-latest'] - php: >- - ['8.3'] + ['8.1', '8.2', '8.3'] diff --git a/composer.json b/composer.json index cd8cf48c8..e1d63fc0b 100644 --- a/composer.json +++ b/composer.json @@ -39,7 +39,7 @@ "rector/rector": "^1.0", "roave/infection-static-analysis-plugin": "^1.34", "spatie/phpunit-watcher": "^1.23", - "vimeo/psalm": "^5.20", + "vimeo/psalm": "^5.25", "yiisoft/aliases": "^2.0", "yiisoft/arrays": "^3.1", "yiisoft/cache": "^3.0", diff --git a/psalm83.xml b/psalm83.xml deleted file mode 100644 index 9a892895c..000000000 --- a/psalm83.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - diff --git a/src/TransactionalInterface.php b/src/TransactionalInterface.php index 24d1249a9..b5b7bf214 100644 --- a/src/TransactionalInterface.php +++ b/src/TransactionalInterface.php @@ -9,18 +9,30 @@ interface TransactionalInterface /** * The insert operation. This is mainly used when overriding {@see transactions()} to specify which operations are * transactional. + * + * @var int + * + * @psalm-suppress MissingClassConstType */ public const OP_INSERT = 0x01; /** * The update operation. This is mainly used when overriding {@see transactions()} to specify which operations are * transactional. + * + * @var int + * + * @psalm-suppress MissingClassConstType */ public const OP_UPDATE = 0x02; /** * The delete operation. This is mainly used when overriding {@see transactions()} to specify which operations are * transactional. + * + * @var int + * + * @psalm-suppress MissingClassConstType */ public const OP_DELETE = 0x04;