Skip to content

Commit

Permalink
Merge pull request #454 from stephanus-tantiono/master
Browse files Browse the repository at this point in the history
Support nova 5
  • Loading branch information
bkintanar authored Jan 3, 2025
2 parents 08b5b88 + 661ae32 commit 35414fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"require": {
"php": ">=7.4",
"laravel/framework": "^8.0|^9.0|^10.0|^11.0",
"laravel/nova": "^4.0",
"laravel/nova": "^4.0|^5.0",
"spatie/laravel-medialibrary": "^8.0|^9.0|^10.0|^11.0"
},
"autoload": {
Expand Down
2 changes: 1 addition & 1 deletion src/Fields/Media.php
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ private function removeDeletedMedia($data, Collection $medias): Collection
* @param HasMedia|InteractsWithMedia $resource
* @param null $attribute
*/
public function resolve($resource, $attribute = null)
public function resolve($resource, ?string $attribute = null): void
{
$collectionName = $attribute ?? $this->attribute;

Expand Down

0 comments on commit 35414fe

Please sign in to comment.