Skip to content

Commit

Permalink
add initial psalm support (level 5); fix phpdoc issue
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidGoodwin committed Apr 13, 2020
1 parent c0673da commit 33feed9
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
16 changes: 16 additions & 0 deletions psalm.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0"?>
<psalm
totallyTyped="false"
errorLevel="5"
resolveFromConfigFile="true"
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"
>
<projectFiles>
<directory name="src/" />
<ignoreFiles>
<directory name="vendor" />
</ignoreFiles>
</projectFiles>
</psalm>
3 changes: 2 additions & 1 deletion src/Ganesha/Strategy/Rate.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 33feed9

Please sign in to comment.