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

Problem with non initialization property in 7.4 PHP #76

Closed
abdrzakoxa opened this issue Aug 27, 2020 · 0 comments · Fixed by #77
Closed

Problem with non initialization property in 7.4 PHP #76

abdrzakoxa opened this issue Aug 27, 2020 · 0 comments · Fixed by #77

Comments

@abdrzakoxa
Copy link
Contributor

Hello,

in the php 7.4 support types in properties,

i have class like this:

class Something {
    protected Car $car;
}

so when trying to Serialize it it give this error:

Typed property Something::$car must not be accessed before initialization

because this package may be want to access this property!
also when you try this:

(new Something)->car;

also it give same error because car doesn't have any value

Thanks!

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