From 1b7bba32c3c5546419b831717cab490e9b4d42a3 Mon Sep 17 00:00:00 2001 From: spiralbot Date: Mon, 10 Apr 2023 08:50:23 +0000 Subject: [PATCH] Upgrade Psalm up to v5.x --- composer.json | 2 +- psalm.xml | 2 ++ src/BroadcastInterface.php | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index c8c7809..7fa753f 100644 --- a/composer.json +++ b/composer.json @@ -45,7 +45,7 @@ "mockery/mockery": "^1.5", "phpunit/phpunit": "^9.5.20", "spiral/boot": "^3.7", - "vimeo/psalm": "^4.27" + "vimeo/psalm": "^5.9" }, "autoload-dev": { "psr-4": { diff --git a/psalm.xml b/psalm.xml index 7e26025..5c9b2f3 100644 --- a/psalm.xml +++ b/psalm.xml @@ -11,6 +11,8 @@ findUnusedVariablesAndParams="true" ensureArrayStringOffsetsExist="true" addParamDefaultToDocblockType="true" + findUnusedBaselineEntry="true" + findUnusedCode="false" > diff --git a/src/BroadcastInterface.php b/src/BroadcastInterface.php index 21dd8c5..bc649d7 100644 --- a/src/BroadcastInterface.php +++ b/src/BroadcastInterface.php @@ -7,8 +7,8 @@ use Spiral\Broadcasting\Exception\BroadcastException; /** - * @psalm-type TopicsList = non-empty-list | non-empty-list<\Stringable> | string | Stringable - * @psalm-type MessagesList = non-empty-list | non-empty-list<\Stringable> | string | Stringable + * @psalm-type TopicsList = non-empty-list | non-empty-list<\Stringable> | string | \Stringable + * @psalm-type MessagesList = non-empty-list | non-empty-list<\Stringable> | string | \Stringable */ interface BroadcastInterface {