Skip to content

Commit 25f964c

Browse files
committed
Fixed PHP 8.4 issues
1 parent b4bebc1 commit 25f964c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"68publishers/doctrine-bridge": "^1.0",
1616
"68publishers/doctrine-persistence": "^0.3",
1717
"68publishers/event-dispatcher-extra": "^1.1",
18-
"68publishers/file-storage": "^1.1.2",
18+
"68publishers/file-storage": "^1.3.0",
1919
"68publishers/smart-nette-component": "^1.0",
2020
"68publishers/translation-bridge": "^2.0",
2121
"nette/application": "^3.0.6",
@@ -30,7 +30,7 @@
3030
"nette/tester": "^2.3.4",
3131
"68publishers/notification-bundle": "^0.3",
3232
"gedmo/doctrine-extensions": "^3.1",
33-
"68publishers/image-storage": "^1.3"
33+
"68publishers/image-storage": "^1.5"
3434
},
3535
"suggest": {
3636
"gedmo/doctrine-extensions": "If you want to use soft-deletable files.",

src/Entity/AbstractFile.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public function getCreated(): DateTimeInterface
109109
/**
110110
* {@inheritdoc}
111111
*/
112-
public function getMetadata(string $key = NULL, $default = NULL)
112+
public function getMetadata(?string $key = NULL, $default = NULL)
113113
{
114114
if (NULL === $key) {
115115
return $this->metadata;

src/Entity/FileInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function getCreated(): DateTimeInterface;
3030
*
3131
* @return mixed|array|NULL
3232
*/
33-
public function getMetadata(string $key = NULL, $default = NULL);
33+
public function getMetadata(?string $key = NULL, $default = NULL);
3434

3535
/**
3636
* @param array $metadata

0 commit comments

Comments
 (0)