Skip to content

Commit 12c5b1e

Browse files
committed
Upgrade coding standard
1 parent 2c0b1d5 commit 12c5b1e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
},
4040
"require-dev": {
4141
"ext-xdebug": "*",
42-
"aplus/coding-standard": "^2.4",
42+
"aplus/coding-standard": "^2.8",
4343
"ergebnis/composer-normalize": "^2.15",
4444
"jetbrains/phpstorm-attributes": "^1.0",
4545
"phpmd/phpmd": "^2.13",

src/Image.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ public function getWidth() : int
254254
* given image type or false on fail
255255
*/
256256
#[Pure]
257-
public function getExtension() : string | false
257+
public function getExtension() : false | string
258258
{
259259
return \image_type_to_extension($this->type);
260260
}
@@ -277,7 +277,7 @@ public function getMime() : string
277277
*
278278
* @return bool
279279
*/
280-
public function save(string $filename = null) : bool
280+
public function save(?string $filename = null) : bool
281281
{
282282
$filename ??= $this->filename;
283283
return match ($this->type) {

0 commit comments

Comments
 (0)