Skip to content

Commit

Permalink
phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
lekoala committed Mar 7, 2024
1 parent 8a168be commit 4c42f37
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/SpreadCompat.php
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,11 @@ public static function excelCell(int $row = 0, int $column = 0, bool $absolute =
return $r . ($row + 1);
}

/**
* @param array<mixed> $opts
* @param string|null $fallback
* @return string|null
*/
protected static function getExtensionFromOpts(array $opts, ?string $fallback = null): ?string
{
return $opts[0]['extension'] ?? $opts['extension'] ?? $fallback;

Check failure on line 270 in src/SpreadCompat.php

View workflow job for this annotation

GitHub Actions / build-test

Cannot access offset 'extension' on mixed.

Check failure on line 270 in src/SpreadCompat.php

View workflow job for this annotation

GitHub Actions / build-test

Method LeKoala\SpreadCompat\SpreadCompat::getExtensionFromOpts() should return string|null but returns mixed.
Expand Down

0 comments on commit 4c42f37

Please sign in to comment.