Skip to content

Commit

Permalink
Psalm level 1
Browse files Browse the repository at this point in the history
  • Loading branch information
vjik committed Feb 9, 2024
1 parent 407b1c7 commit 24990e5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion psalm.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<psalm
errorLevel="2"
errorLevel="1"
findUnusedBaselineEntry="true"
findUnusedCode="false"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Expand Down
2 changes: 1 addition & 1 deletion psalm80.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<psalm
errorLevel="2"
errorLevel="1"
findUnusedBaselineEntry="true"
findUnusedCode="false"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Expand Down
8 changes: 8 additions & 0 deletions src/FileCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,9 @@ private function validateKey(string $key): void
}
}

/**
* @param string[] $keys
*/
private function validateKeys(array $keys): void
{
foreach ($keys as $key) {
Expand All @@ -432,6 +435,11 @@ private function existsAndNotExpired(string $file): bool

/**
* Converts iterable to array.
*
* @psalm-template TKey
* @psalm-template TValue
* @psalm-param iterable<TKey, TValue> $iterable
* @psalm-return array<TKey, TValue>
*/
private function iterableToArray(iterable $iterable): array
{
Expand Down

0 comments on commit 24990e5

Please sign in to comment.