Skip to content
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

ArrayObject::__construct() TypeError #858

Closed
kubenkwi opened this issue Sep 5, 2023 · 0 comments · Fixed by #865
Closed

ArrayObject::__construct() TypeError #858

kubenkwi opened this issue Sep 5, 2023 · 0 comments · Fixed by #865

Comments

@kubenkwi
Copy link

kubenkwi commented Sep 5, 2023

Q A
Bug? yes
New Feature? no
Framework Laravel
Framework version 9.52.4
Package version 12.2.1
PHP version 8.1.17

Actual Behaviour

When calling getModified() on an audit contains a null property that casts to an ArrayObject, a TypeError is thrown.

Expected Behaviour

Successfully retrieving modified.

Steps to Reproduce

Create an audit of a model that casts a property to ArrayObject, and have the old_values of the audit include {"cast_property":null}. Then call getModified().

Possible Solutions

patch.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant