Skip to content

Commit 8fd5c62

Browse files
committed
ci(config): Update PHPStan and Psalm configurations
- Disable 'checkMissingIterableValueType' in PHPStan configuration - Upgrade Psalm version from 5.23.1 to 5.26.1 in psalm-baseline.xml - Add '@psalm-suppress InvalidPassByReference' annotation in ScoreCommand handle method These changes enhance code quality checks and keep dependencies up to date.
1 parent 3745e32 commit 8fd5c62

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

phpstan.neon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ parameters:
1414
tmpDir: build/phpstan
1515
# checkOctaneCompatibility: true
1616
# checkModelProperties: true
17-
checkMissingIterableValueType: true
17+
# checkMissingIterableValueType: true
1818
# disallowFloatsEverywhere: true
1919

2020
# strictRules:

psalm-baseline.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<files psalm-version="5.23.1@8471a896ccea3526b26d082f4461eeea467f10a4">
2+
<files psalm-version="5.26.1@d747f6500b38ac4f7dfc5edbcae6e4b637d7add0">
33
<file src="src/Bootstrapper.php">
44
<UndefinedInterfaceMethod>
55
<code><![CDATA[$app]]></code>

src/Commands/ScoreCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ class ScoreCommand extends Command
2525
/**
2626
* @noinspection MethodShouldBeFinalInspection
2727
*
28+
* @psalm-suppress InvalidPassByReference
29+
*
2830
* @throws \Guanguans\SoarPHP\Exceptions\InvalidOptionException
2931
*/
3032
public function handle(): void

0 commit comments

Comments
 (0)