Skip to content

Commit

Permalink
ignore phpstan error
Browse files Browse the repository at this point in the history
  • Loading branch information
lekoala committed Mar 7, 2024
1 parent 4c42f37 commit 838443a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/SpreadCompat.php
Original file line number Diff line number Diff line change
Expand Up @@ -261,12 +261,15 @@ public static function excelCell(int $row = 0, int $column = 0, bool $absolute =
}

/**
* @param array<mixed> $opts
* This function takes an associative array of options or an array
* where the first argument is the associative array
* @param array<int,array<string,string>>|array<string,string> $opts
* @param string|null $fallback
* @return string|null
*/
protected static function getExtensionFromOpts(array $opts, ?string $fallback = null): ?string
{
//@phpstan-ignore-next-line PHPStan doesn't detect properly our return type
return $opts[0]['extension'] ?? $opts['extension'] ?? $fallback;
}

Expand Down

0 comments on commit 838443a

Please sign in to comment.