Skip to content

Commit 526aff2

Browse files
committed
Upgrade to Psalm 6
1 parent 64a99d0 commit 526aff2

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"require-dev": {
1818
"amphp/php-cs-fixer-config": "^2",
1919
"phpunit/phpunit": "^9",
20-
"psalm/phar": "5.23"
20+
"psalm/phar": "6.15.1"
2121
},
2222
"autoload": {
2323
"psr-4": {

psalm.xml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,24 @@
1212
<directory name="vendor"/>
1313
</ignoreFiles>
1414
</projectFiles>
15+
16+
<issueHandlers>
17+
<ClassMustBeFinal>
18+
<errorLevel type="suppress">
19+
<directory name="src"/>
20+
</errorLevel>
21+
</ClassMustBeFinal>
22+
23+
<PossiblyUnusedMethod>
24+
<errorLevel type="suppress">
25+
<directory name="src"/>
26+
</errorLevel>
27+
</PossiblyUnusedMethod>
28+
29+
<UnusedClass>
30+
<errorLevel type="suppress">
31+
<directory name="src"/>
32+
</errorLevel>
33+
</UnusedClass>
34+
</issueHandlers>
1535
</psalm>

src/SqlTransactionIsolationLevel.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ enum SqlTransactionIsolationLevel implements SqlTransactionIsolation
99
case Repeatable;
1010
case Serializable;
1111

12+
#[\Override]
1213
public function getLabel(): string
1314
{
1415
return match ($this) {
@@ -19,6 +20,7 @@ public function getLabel(): string
1920
};
2021
}
2122

23+
#[\Override]
2224
public function toSql(): string
2325
{
2426
return match ($this) {

0 commit comments

Comments
 (0)