Describe the bug
When a ServiceType class has a setSoapHeader method containng the usage of an argument that is part of a restriction, an InvalidArgumentException exception can be thrown but the use statement is missing which would lead to an error if the exception had to be thrown.
// validation for constraint: enumeration
if (!\Ews\EnumType\DateTimePrecisionType::valueIsValid($dateTimePrecision)) {
throw new InvalidArgumentException(sprintf('Invalid value(s) %s, please use one of: %s from enumeration class \Ews\EnumType\DateTimePrecisionType', is_array($dateTimePrecision) ? implode(', ', $dateTimePrecision) : var_export($dateTimePrecision, true), implode(', ', \Ews\EnumType\DateTimePrecisionType::getValidValues())), __LINE__);
}
To Reproduce
Generate the package for the Ews365 Soap WS
Expected behavior
The use InvalidArgumentEsception must be present at the beginning of the class.
Describe the bug When a ServiceType class has a
setSoapHeader
method containng the usage of an argument that is part of a restriction, an InvalidArgumentException exception can be thrown but the use statement is missing which would lead to an error if the exception had to be thrown.To Reproduce Generate the package for the Ews365 Soap WS
Expected behavior The
use InvalidArgumentEsception
must be present at the beginning of the class.