From 33feed9cbc749e2f8e6dd415f98fa7bc5fd0e8e0 Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Mon, 13 Apr 2020 21:09:17 +0100 Subject: [PATCH] add initial psalm support (level 5); fix phpdoc issue --- composer.json | 1 + psalm.xml | 16 ++++++++++++++++ src/Ganesha/Strategy/Rate.php | 3 ++- 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 psalm.xml diff --git a/composer.json b/composer.json index 719837f..99394de 100644 --- a/composer.json +++ b/composer.json @@ -34,6 +34,7 @@ "php-coveralls/php-coveralls": "~2.0", "predis/predis": "^1.1", "guzzlehttp/guzzle": "~6.5", + "vimeo/psalm" : "*", "ext-redis": "~5.1", "ext-memcached": "~3.1", "ext-mongodb": "~1.6" diff --git a/psalm.xml b/psalm.xml new file mode 100644 index 0000000..6b564ff --- /dev/null +++ b/psalm.xml @@ -0,0 +1,16 @@ + + + + + + + + + diff --git a/src/Ganesha/Strategy/Rate.php b/src/Ganesha/Strategy/Rate.php index 3d8b4a2..7aca05a 100644 --- a/src/Ganesha/Strategy/Rate.php +++ b/src/Ganesha/Strategy/Rate.php @@ -141,7 +141,8 @@ public function isAvailable(string $service): bool /** * @param string $service * @return bool - * @throws StorageException, \LogicException + * @throws StorageException + * @throws \LogicException */ private function isClosed(string $service): bool {