You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using inbound custom casts, and setting a value to null on an empty model, we get PHP notices of undefined index.
Setting a null initial value will try to retrieve the current value by doing $this->attributes[$key], but since $this->attributes[$key] does not exist yet, we get a PHP notice.
In HasAttributes->getClassCastableAttributeValue(), it can be solved by changing the following:
Description:
When using inbound custom casts, and setting a value to null on an empty model, we get PHP notices of undefined index.
Setting a null initial value will try to retrieve the current value by doing
$this->attributes[$key]
, but since$this->attributes[$key]
does not exist yet, we get a PHP notice.In
HasAttributes->getClassCastableAttributeValue()
, it can be solved by changing the following:Into:
Steps To Reproduce:
The text was updated successfully, but these errors were encountered: