Skip to content

Commit 74594ca

Browse files
committed
fix: PHPStan failing
1 parent 9311dfe commit 74594ca

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ jobs:
77
name: PHPUnit on PHP v${{ matrix.php }} ${{ matrix.dependencies }}
88
runs-on: ubuntu-latest
99
strategy:
10-
fail-fast: true
1110
matrix:
1211
php: [ 8.2, 8.3, 8.4 ]
1312
dependencies: ['', --prefer-lowest]
@@ -39,7 +38,7 @@ jobs:
3938
${{ runner.os }}-php-
4039
4140
- name: Install dependencies
42-
run: composer install --prefer-dist --no-progress ${{ matrix.dependencies }}
41+
run: composer update --prefer-dist --no-progress ${{ matrix.dependencies }}
4342

4443
- name: Execute phpunit
4544
run: composer test -- --colors=always

src/PHPStan/ReflectorReturnType.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ private function reflectionTypeClassName(Type $type): ?string
8787

8888
private function typeFromMethodCall(MethodCall $methodCall, Scope $scope): ?Type
8989
{
90+
/** @phpstan-ignore function.alreadyNarrowedType */
9091
$nameArg = method_exists($methodCall, 'getArg') ?
9192
$methodCall->getArg('name', 0) :
9293
$methodCall->getArgs()[0] ?? null;

0 commit comments

Comments
 (0)