Skip to content

Commit

Permalink
Merge pull request #33 from Slamdunk/php_84_compat
Browse files Browse the repository at this point in the history
  • Loading branch information
frankdejonge authored Sep 21, 2024
2 parents ce0f4d1 + 6e61ff6 commit 0d155d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ExtensionMimeTypeDetector.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class ExtensionMimeTypeDetector implements MimeTypeDetector, ExtensionLookup
*/
private $extensions;

public function __construct(ExtensionToMimeTypeMap $extensions = null)
public function __construct(?ExtensionToMimeTypeMap $extensions = null)
{
$this->extensions = $extensions ?: new GeneratedExtensionToMimeTypeMap();
}
Expand Down
2 changes: 1 addition & 1 deletion src/FinfoMimeTypeDetector.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class FinfoMimeTypeDetector implements MimeTypeDetector, ExtensionLookup

public function __construct(
string $magicFile = '',
ExtensionToMimeTypeMap $extensionMap = null,
?ExtensionToMimeTypeMap $extensionMap = null,
?int $bufferSampleSize = null,
array $inconclusiveMimetypes = self::INCONCLUSIVE_MIME_TYPES
) {
Expand Down

0 comments on commit 0d155d7

Please sign in to comment.