Open PeterVoskuilen opened 2 years ago
@PeterVoskuilen - Are you saying you resolved by changing line 13 to:
public ?int $displayColorRGB;
?
@aidan-casey I've also encountered this problem The value can be null from autotask. I've changed it to that and that should be the solution. I'll try to make a PR this evening and will assign you to it for check-up!
@PeterVoskuilen - Are you saying you resolved by changing line 13 to:
public ?int $displayColorRGB;
?
This is how I was able to resolve the issue on my end, with that specific field, and others. Is there, by chance, any plans on implementing more "null" handling? I have had to make changes to 9 or so models to resolve an error caused by receiving null from Autotask.
Get an error when getting ConfigurationItemCategory fro AutoTask
Invalid type: expected
Anteris\Autotask\API\ConfigurationItemCategories\ConfigurationItemCategoryEntity::displayColorRgb
to be of typeinteger
, instead got valuenull
, which is NULL..ConfigurationItemCategories does have RGB value in Autotask as seen in image. although it might be blue because thats a default and value is NULL.
Second error: Public properties
displayColorRGB
not found on Anteris\Autotask\API\ConfigurationItemCategories\ConfigurationItemCategoryEntityResolved by changing line 13 in ConfigurationItemCategoryEntity
public int $displayColorRGB;