Skip to content

Commit 39bbe05

Browse files
fixup! fix: Fix phpstan issues
1 parent 7b1500b commit 39bbe05

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
dependencies: ["lowest", "highest"]
2020
php-version:
2121
- "8.3"
22+
- "8.4"
2223

2324
steps:
2425
- name: "Checkout"

.github/workflows/code_coverage.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- uses: actions/checkout@v4
1515
- uses: shivammathur/setup-php@master
1616
with:
17-
php-version: 8.3
17+
php-version: 8.4
1818
coverage: xdebug
1919
- name: Load dependencies from cache
2020
id: composer-cache
@@ -23,9 +23,9 @@ jobs:
2323
- uses: actions/cache@v4
2424
with:
2525
path: ${{ steps.composer-cache.outputs.dir }}
26-
key: ${{ runner.os }}-php8.3-composer-${{ hashFiles('**/composer.json') }}
26+
key: ${{ runner.os }}-php8.4-composer-${{ hashFiles('**/composer.json') }}
2727
restore-keys: |
28-
${{ runner.os }}-php8.3-composer-
28+
${{ runner.os }}-php8.4-composer-
2929
3030
- run: composer install --prefer-dist --no-progress --no-suggest
3131
- run: php vendor/bin/phpunit --coverage-clover build/logs/clover.xml

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
},
2121
"require-dev": {
2222
"brainbits/phpcs-standard": "^7.0",
23-
"brainbits/phpstan-rules": "^3.0",
24-
"jangregor/phpstan-prophecy": "^1.0",
25-
"phpstan/phpstan": "^1.0",
26-
"phpstan/phpstan-phpunit": "^1.3",
23+
"brainbits/phpstan-rules": "^4.0",
24+
"jangregor/phpstan-prophecy": "^2.2",
25+
"phpstan/phpstan": "^2.0",
26+
"phpstan/phpstan-phpunit": "^2.0",
2727
"phpunit/phpunit": "^10.2"
2828
},
2929
"config": {

tests/Command/WaitForDatabaseCommandTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ public function testConstruction(): void
2323
$connection = $this->createMock(Connection::class);
2424
$command = new WaitForDatabaseCommand($connection);
2525

26+
/** @phpstan-ignore method.alreadyNarrowedType */
2627
$this->assertInstanceOf(Command::class, $command);
2728
}
2829

0 commit comments

Comments
 (0)