Skip to content

Commit 0a70cb2

Browse files
committed
Fix QA
1 parent 623cfab commit 0a70cb2

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

.github/workflows/static-analysis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@ jobs:
5555
php: [ '7.4', '8.0', '8.1', '8.2', '8.3' ]
5656
with:
5757
PHP_VERSION: ${{ matrix.php }}
58-
PSALM_ARGS: --output-format=github --no-suggestions --no-cache --no-diff --find-unused-psalm-suppress
58+
PSALM_ARGS: --output-format=github --no-suggestions --no-cache --no-diff

.github/workflows/unit-tests.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,11 @@ jobs:
5353

5454
- name: Adjust dependencies in 'composer.json'
5555
run: |
56-
composer remove roots/wordpress-no-content --dev --no-update
57-
composer require "roots/wordpress-no-content:~${{ matrix.wp-ver }}.0" --no-update
56+
composer remove roots/wordpress-no-content inpsyde/php-coding-standards vimeo/psalm --dev --no-update
57+
composer require "roots/wordpress-no-content:~${{ matrix.wp-ver }}.0" --dev --no-update
5858
5959
- name: Install dependencies
6060
uses: ramsey/composer-install@v3
61-
with:
62-
composer-options: "--no-dev"
6361

6462
- name: Run unit tests
6563
run: ./vendor/bin/phpunit --no-coverage

src/Functions.php

+5-1
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,11 @@ private static function isClassLikeString($thing): bool
368368
return false;
369369
}
370370

371-
// phpcs:disable PHPCompatibility.FunctionUse.NewFunctions.enum_existsFound
371+
/**
372+
* @psalm-suppress UndefinedFunction
373+
* @var true
374+
* phpcs:disable PHPCompatibility.FunctionUse.NewFunctions.enum_existsFound
375+
*/
372376
return enum_exists($thing);
373377
}
374378

0 commit comments

Comments
 (0)