[BUGFIX] Fix phpstan errors from TypesAssignedToPropertiesRule