Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/code_coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@master
with:
php-version: 8.3
php-version: 8.4
coverage: xdebug
- name: Load dependencies from cache
id: composer-cache
Expand All @@ -23,9 +23,9 @@ jobs:
- uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-php8.3-composer-${{ hashFiles('**/composer.json') }}
key: ${{ runner.os }}-php8.4-composer-${{ hashFiles('**/composer.json') }}
restore-keys: |
${{ runner.os }}-php8.3-composer-
${{ runner.os }}-php8.4-composer-

- run: composer install --prefer-dist --no-progress --no-suggest
- run: php vendor/bin/phpunit --coverage-clover build/logs/clover.xml
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/coding_standards.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@master
with:
php-version: 8.3
php-version: 8.4
coverage: none
- name: Load dependencies from cache
id: composer-cache
Expand All @@ -22,9 +22,9 @@ jobs:
- uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-php8.3-composer-${{ hashFiles('**/composer.json') }}
key: ${{ runner.os }}-php8.4-composer-${{ hashFiles('**/composer.json') }}
restore-keys: |
${{ runner.os }}-php8.3-composer-
${{ runner.os }}-php8.4-composer-

- run: composer validate --strict
- run: composer install --prefer-dist --no-progress --no-suggest
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/phpstan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@master
with:
php-version: 8.3
php-version: 8.4
coverage: none
- name: Load dependencies from cache
id: composer-cache
Expand All @@ -22,9 +22,9 @@ jobs:
- uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-php8.3-composer-${{ hashFiles('**/composer.json') }}
key: ${{ runner.os }}-php8.4-composer-${{ hashFiles('**/composer.json') }}
restore-keys: |
${{ runner.os }}-php8.3-composer-
${{ runner.os }}-php8.4-composer-

- run: composer install --prefer-dist --no-progress --no-suggest
- run: composer run-script phpstan
10 changes: 6 additions & 4 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['8.3']
php-versions:
- 8.3
- 8.4

name: Tests on PHP ${{ matrix.php-versions }}
steps:
Expand Down Expand Up @@ -41,7 +43,7 @@ jobs:
- uses: actions/checkout@master
- uses: shivammathur/setup-php@v2
with:
php-version: 8.3
php-version: 8.4
coverage: none
- name: Load dependencies from cache
id: composer-cache
Expand All @@ -50,9 +52,9 @@ jobs:
- uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-php8.3-lowest-composer-${{ hashFiles('**/composer.json') }}
key: ${{ runner.os }}-php8.4-lowest-composer-${{ hashFiles('**/composer.json') }}
restore-keys: |
${{ runner.os }}-php8.3-lowest-composer-
${{ runner.os }}-php8.4-lowest-composer-
- run: composer update --no-progress --no-suggest --prefer-lowest
- run: php vendor/bin/phpunit

4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
"phpstan/phpstan": "^2.0"
},
"require-dev": {
"brainbits/phpcs-standard": "^7.0",
"brainbits/phpcs-standard": "^8.0",
"php-coveralls/php-coveralls": "^2.0",
"phpstan/phpstan-phpunit": "^2.0",
"phpunit/phpunit": "^11.0"
"phpunit/phpunit": "^12.0"
},
"scripts": {
"check-all": [
Expand Down
2 changes: 1 addition & 1 deletion src/CoversClassPresentRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
/** @implements Rule<Class_> */
final class CoversClassPresentRule implements Rule
{
private const TEST_CLASS_ENDING_STRING = 'Test';
private const string TEST_CLASS_ENDING_STRING = 'Test';

/** @var string */
private $unitTestNamespaceContainsString;
Expand Down
Loading