chore: phpstan level 5

This commit is contained in:
Nuno Maduro
2021-11-14 21:23:02 +00:00
parent 8ace01b6f1
commit 183f975166
23 changed files with 65 additions and 796 deletions

View File

@ -46,7 +46,7 @@ final class Datasets
/**
* Sets the given.
*
* @param Closure|iterable<int|string, mixed> $data
* @param Closure|iterable<int|string, mixed>|string $with
*/
public static function with(string $filename, string $description, Closure|iterable|string $with): void
{
@ -129,7 +129,7 @@ final class Datasets
$processedDataset = [];
if (is_string($data)) {
if (!isset(self::$datasets[$data])) {
if (! array_key_exists($data, self::$datasets)) {
throw new DatasetDoesNotExist($data);
}