Skip to content

v1.0.4 - Nova 4.35.x Compatibility Fix

Choose a tag to compare

@iamgerwin iamgerwin released this 25 Nov 02:36
· 17 commits to main since this release

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 resolveForDisplay method signature mismatch (#1)
  • Fixed resolve method signature to match parent Laravel\Nova\Fields\Field class
  • Updated Stubs/Field.php method 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 MockField test 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-container

Full Changelog: v1.0.3...v1.0.4