Skip to content

Commit 5eb18b6

Browse files
authored
Fix psalm errors + Remove bump-after-update (#143)
1 parent 5f23024 commit 5eb18b6

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"rector/rector": "^2.0.7",
5555
"roave/infection-static-analysis-plugin": "^1.35",
5656
"spatie/phpunit-watcher": "^1.24",
57-
"vimeo/psalm": "^5.26.1|^6.2",
57+
"vimeo/psalm": "^5.26.1 || ^6.9.1",
5858
"yiisoft/di": "^1.3",
5959
"yiisoft/test-support": "^3.0.1"
6060
},
@@ -83,7 +83,6 @@
8383
},
8484
"config": {
8585
"sort-packages": true,
86-
"bump-after-update": "dev",
8786
"allow-plugins": {
8887
"bamarni/composer-bin-plugin": true,
8988
"composer/package-versions-deprecated": true,

psalm.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
errorLevel="1"
44
findUnusedBaselineEntry="true"
55
findUnusedCode="false"
6+
ensureOverrideAttribute="false"
7+
strictBinaryOperands="false"
68
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
79
xmlns="https://getpsalm.org/schema/config"
810
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"

src/Exception/ErrorException.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
/**
1616
* `ErrorException` represents a PHP error.
1717
* @psalm-type DebugBacktraceType = list<array{args?:list<mixed>,class?:class-string,file?:string,function:string,line?:int,object?:object,type?:string}>
18+
*
19+
* @final
1820
*/
1921
class ErrorException extends \ErrorException implements FriendlyExceptionInterface
2022
{
21-
/**
22-
* @psalm-suppress MissingClassConstType Private constants never change.
23-
*/
23+
/** @psalm-suppress MissingClassConstType Private constants never change. */
2424
private const ERROR_NAMES = [
2525
E_ERROR => 'PHP Fatal Error',
2626
E_WARNING => 'PHP Warning',

src/Exception/UserException.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
/**
1010
* UserException is the base class for exceptions that are meant to be shown to end users.
1111
* Such exceptions are often caused by mistakes of end users.
12+
*
13+
* @final
1214
*/
1315
class UserException extends Exception
1416
{
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
{
22
"require-dev": {
33
"maglnet/composer-require-checker": "^4.7.1"
4-
},
5-
"config": {
6-
"bump-after-update": "dev"
74
}
85
}

0 commit comments

Comments
 (0)