-
Notifications
You must be signed in to change notification settings - Fork 308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There was a mistake in the new commit #455
Comments
@bkintanar ping! The changes in 4.3 (#454) are actually incompatible with Nova 4.x contrary to the requirements in the composer file |
got the same - where unit tests? |
@kiritokatklian i've reverted the changes, and merged the changes necessary for Nova 5.0 support. I currently do not have access to Nova anymore, can someone test the latest commit in master? |
@bkintanar #454 contained two breaking changes to support Nova 5. Your commit only reverts one of the changes, namely the one in Composer. The other change is
I tested locally by fixing the method's signature and the changes in #456 are working with Nova 4. I opened #457 to fix the issue above. I'd first release #456 and #457 together to fix the issue for Nova 4 users once and for all. |
@kiritokatklian thanks! I've done the above, released both 4.4 (Nova 4 support) and 5.0 (Nova 5 support). Can you or anyone test it please? Thank you |
@bkintanar amazing, thanks! Both versions working as expected here 😄 |
[2025-01-03 16:45:51] development.ERROR: Declaration of Ebess\AdvancedNovaMediaLibrary\Fields\Media::resolve($resource, ?string $attribute = null): void must be compatible with Laravel\Nova\Fields\Field::resolve($resource, $attribute = null) {"userId":1,"exception":"[object] (Symfony\Component\ErrorHandler\Error\FatalError(code: 0): Declaration of Ebess\AdvancedNovaMediaLibrary\Fields\Media::resolve($resource, ?string $attribute = null): void must be compatible with Laravel\Nova\Fields\Field::resolve($resource, $attribute = null) at /vendor/ebess/advanced-nova-media-library/src/Fields/Media.php:290)
[stacktrace]
#0 {main}
"}
The text was updated successfully, but these errors were encountered: