Repository navigation
v1.0.4 - Nova 4.35.x Compatibility Fix
What's Changed
This release fixes a critical compatibility issue with Laravel Nova 4.35.x where the resolveForDisplay and resolve method signatures were incompatible with the parent Field class.
Fixed
- Fixed Nova 4.35.x compatibility issue with
resolveForDisplaymethod signature mismatch (#1) - Fixed
resolvemethod signature to match parentLaravel\Nova\Fields\Fieldclass - Updated
Stubs/Field.phpmethod signatures to align with Nova's actual implementation
Changed
- Removed strict type hints from
resolve($resource, $attribute = null)method for Nova compatibility - Removed strict type hints from
resolveForDisplay($resource, $attribute = null)method for Nova compatibility - Updated
MockFieldtest mock to use compatible method signatures
Added
- Added comprehensive tests for method signature compatibility using PHP Reflection API
- Added tests for method invocation with various argument types
Migration Notes
This is a non-breaking change. Simply update your composer dependency:
composer update iamgerwin/nova-dependency-containerFull Changelog: v1.0.3...v1.0.4