diff --git a/composer.json b/composer.json index 0ec520e..7c1df43 100644 --- a/composer.json +++ b/composer.json @@ -54,7 +54,7 @@ "rector/rector": "^2.0.7", "roave/infection-static-analysis-plugin": "^1.35", "spatie/phpunit-watcher": "^1.24", - "vimeo/psalm": "^5.26.1|^6.2", + "vimeo/psalm": "^5.26.1 || ^6.9.1", "yiisoft/di": "^1.3", "yiisoft/test-support": "^3.0.1" }, @@ -83,7 +83,6 @@ }, "config": { "sort-packages": true, - "bump-after-update": "dev", "allow-plugins": { "bamarni/composer-bin-plugin": true, "composer/package-versions-deprecated": true, diff --git a/psalm.xml b/psalm.xml index b48c894..39a3bda 100644 --- a/psalm.xml +++ b/psalm.xml @@ -3,6 +3,8 @@ errorLevel="1" findUnusedBaselineEntry="true" findUnusedCode="false" + ensureOverrideAttribute="false" + strictBinaryOperands="false" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="https://getpsalm.org/schema/config" xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd" diff --git a/src/Exception/ErrorException.php b/src/Exception/ErrorException.php index 11c1465..0346c26 100644 --- a/src/Exception/ErrorException.php +++ b/src/Exception/ErrorException.php @@ -15,12 +15,12 @@ /** * `ErrorException` represents a PHP error. * @psalm-type DebugBacktraceType = list,class?:class-string,file?:string,function:string,line?:int,object?:object,type?:string}> + * + * @final */ class ErrorException extends \ErrorException implements FriendlyExceptionInterface { - /** - * @psalm-suppress MissingClassConstType Private constants never change. - */ + /** @psalm-suppress MissingClassConstType Private constants never change. */ private const ERROR_NAMES = [ E_ERROR => 'PHP Fatal Error', E_WARNING => 'PHP Warning', diff --git a/src/Exception/UserException.php b/src/Exception/UserException.php index 7366979..b6ded57 100644 --- a/src/Exception/UserException.php +++ b/src/Exception/UserException.php @@ -9,6 +9,8 @@ /** * UserException is the base class for exceptions that are meant to be shown to end users. * Such exceptions are often caused by mistakes of end users. + * + * @final */ class UserException extends Exception { diff --git a/tools/composer-require-checker/composer.json b/tools/composer-require-checker/composer.json index 35b552f..0992a90 100644 --- a/tools/composer-require-checker/composer.json +++ b/tools/composer-require-checker/composer.json @@ -1,8 +1,5 @@ { "require-dev": { "maglnet/composer-require-checker": "^4.7.1" - }, - "config": { - "bump-after-update": "dev" } }