Skip to content

Commit

Permalink
Update to phpstan v2
Browse files Browse the repository at this point in the history
  • Loading branch information
olivervogel committed Nov 11, 2024
1 parent edd6983 commit d252f8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
},
"require-dev": {
"phpunit/phpunit": "^10.0 || ^11.0",
"phpstan/phpstan": "^1",
"phpstan/phpstan": "^2",
"squizlabs/php_codesniffer": "^3.8",
"slevomat/coding-standard": "~8.0"
},
Expand Down
3 changes: 1 addition & 2 deletions src/MimeSniffer.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ public static function createFromString(string $content): self
* Load contents of given string into instance
*
* @param string $content
* @throws InvalidArgumentException
* @return MimeSniffer
*/
public function setFromString(string $content): self
Expand Down Expand Up @@ -166,7 +165,7 @@ public function matches(TypeInterface|string|array $types): bool
$types = array_filter($types, function ($type) {
return match (true) {
($type instanceof TypeInterface) => true,
is_string($type) && class_exists($type) => true,
class_exists($type) => true,
default => false,
};
});
Expand Down

0 comments on commit d252f8a

Please sign in to comment.