We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When there's an object that has a nullable public property, like so:
class Customer { public function __construct( public string $name, public ?Address $address, ) {} }
If the Customer's address is null, BindableCache::convertToKvp() will try to use getAddress() instead of being happy with a null value.
getAddress()
The text was updated successfully, but these errors were encountered:
fix: bindable cache allows nested nullable objects
3b3a883
closes #474
tweak: handle nullable iterables
526d6e7
Before closing, it would be good to link the unit test here, as this latest merge is becoming a bit confusing :S
Sorry, something went wrong.
3fd24a9
No branches or pull requests
When there's an object that has a nullable public property, like so:
If the Customer's address is null, BindableCache::convertToKvp() will try to use
getAddress()
instead of being happy with a null value.The text was updated successfully, but these errors were encountered: