Skip to content
This repository has been archived by the owner on Mar 17, 2019. It is now read-only.

Commit

Permalink
Bumped PHP version to 7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
core23 committed Jul 9, 2017
1 parent ec421dd commit b69ff15
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
}
],
"require": {
"php": "^7.0"
"php": "^7.1"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.0",
Expand Down
4 changes: 2 additions & 2 deletions src/MimeUtil.php
Original file line number Diff line number Diff line change
Expand Up @@ -955,7 +955,7 @@ public static function getInstance(): self
*
* @return string|null
*/
public function getTypeFromExtension(string $extension)
public function getTypeFromExtension(string $extension): ?string
{
$extension = strtolower($extension);

Expand All @@ -969,7 +969,7 @@ public function getTypeFromExtension(string $extension)
*
* @return string|null
*/
public function getTypeFromFilename(string $filename)
public function getTypeFromFilename(string $filename): ?string
{
return $this->getTypeFromExtension(pathinfo($filename, PATHINFO_EXTENSION));
}
Expand Down

0 comments on commit b69ff15

Please sign in to comment.