Skip to content

Commit

Permalink
Merge pull request #166 from phil-davis/use-latest-php-cs-fixer
Browse files Browse the repository at this point in the history
Use latest php-cs-fixer 2.17.1
  • Loading branch information
phil-davis committed Dec 13, 2020
2 parents e79abe2 + 69b9368 commit bb27d1a
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 @@ -13,7 +13,7 @@
"sabre/uri" : "^2.0"
},
"require-dev" : {
"friendsofphp/php-cs-fixer": "~2.16.7",
"friendsofphp/php-cs-fixer": "~2.17.1",
"phpstan/phpstan": "^0.12",
"phpunit/phpunit" : "^7.5 || ^8.5 || ^9.0"
},
Expand Down
4 changes: 2 additions & 2 deletions lib/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,8 @@ function parseMimeType(string $str): array
if (2 !== count($mimeType)) {
// Illegal value
var_dump($mimeType);
die();
throw new InvalidArgumentException('Not a valid mime-type: '.$str);
exit();
// throw new InvalidArgumentException('Not a valid mime-type: '.$str);
}
list($type, $subType) = $mimeType;

Expand Down

0 comments on commit bb27d1a

Please sign in to comment.