Skip to content

Commit

Permalink
Upgrade coding standard
Browse files Browse the repository at this point in the history
  • Loading branch information
natanfelles committed Aug 23, 2024
1 parent 2c0b1d5 commit 12c5b1e
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 @@ -39,7 +39,7 @@
},
"require-dev": {
"ext-xdebug": "*",
"aplus/coding-standard": "^2.4",
"aplus/coding-standard": "^2.8",
"ergebnis/composer-normalize": "^2.15",
"jetbrains/phpstorm-attributes": "^1.0",
"phpmd/phpmd": "^2.13",
Expand Down
4 changes: 2 additions & 2 deletions src/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ public function getWidth() : int
* given image type or false on fail
*/
#[Pure]
public function getExtension() : string | false
public function getExtension() : false | string
{
return \image_type_to_extension($this->type);
}
Expand All @@ -277,7 +277,7 @@ public function getMime() : string
*
* @return bool
*/
public function save(string $filename = null) : bool
public function save(?string $filename = null) : bool
{
$filename ??= $this->filename;
return match ($this->type) {
Expand Down

0 comments on commit 12c5b1e

Please # to comment.