InvalidPropertyAssignment
A value assigned to a property is incompatible with the property’s declared type.
Example
Section titled “Example”<?phpclass User { public int $age;}
$user = new User();$user->age = 'twenty'; // string, int expectedHow to fix
Section titled “How to fix”Assign a value of the correct type or update the property type declaration.