You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewInvalidArgumentException(sprintf('Invalid value "%s" for option "%s", possible values: %s', $optionValue, $optionName, implode(', ', $this->options[$optionName]['values'])), __LINE__);
168
+
thrownew\InvalidArgumentException(sprintf('Invalid value "%s" for option "%s", possible values: %s', $optionValue, $optionName, implode(', ', $this->options[$optionName]['values'])), __LINE__);
@@ -253,7 +251,7 @@ protected function parseOptions(string $filename): self
253
251
if (is_array($options)) {
254
252
$this->options = $options;
255
253
} else {
256
-
thrownewInvalidArgumentException(sprintf('Settings contained by "%s" are not valid as the settings are not contained by an array: "%s"', $filename, gettype($options)), __LINE__);
254
+
thrownew\InvalidArgumentException(sprintf('Settings contained by "%s" are not valid as the settings are not contained by an array: "%s"', $filename, gettype($options)), __LINE__);
@@ -48,7 +43,7 @@ public function offsetGet($offset)
48
43
#[\ReturnTypeWillChange]
49
44
publicfunctionoffsetSet($offset, $value)
50
45
{
51
-
thrownewInvalidArgumentException('This method can\'t be used as object are stored with a string as array index', __LINE__);
46
+
thrownew\InvalidArgumentException('This method can\'t be used as object are stored with a string as array index', __LINE__);
52
47
}
53
48
54
49
#[\ReturnTypeWillChange]
@@ -110,7 +105,7 @@ public function add(object $object): self
110
105
publicfunctionget($value)
111
106
{
112
107
if (!is_scalar($value)) {
113
-
thrownewInvalidArgumentException(sprintf('Value "%s" can\'t be used to get an object from "%s"', is_object($value) ? get_class($value) : var_export($value, true), get_class($this)), __LINE__);
108
+
thrownew\InvalidArgumentException(sprintf('Value "%s" can\'t be used to get an object from "%s"', is_object($value) ? get_class($value) : var_export($value, true), get_class($this)), __LINE__);
thrownewInvalidArgumentException(sprintf('Model of type "%s" does not match the object contained by this class: "%s"', get_class($object), $objectClass), __LINE__);
139
+
thrownew\InvalidArgumentException(sprintf('Model of type "%s" does not match the object contained by this class: "%s"', get_class($object), $objectClass), __LINE__);
thrownewInvalidArgumentException(sprintf('Method "%s" is required in "%s" in order to be stored in "%s"', $get, get_class($object), get_class($this)), __LINE__);
147
+
thrownew\InvalidArgumentException(sprintf('Method "%s" is required in "%s" in order to be stored in "%s"', $get, get_class($object), get_class($this)), __LINE__);
153
148
}
154
149
155
150
$key = $object->{$get}();
156
151
if (!is_scalar($key)) {
157
-
thrownewInvalidArgumentException(sprintf('Property "%s" of "%s" must be scalar, "%s" returned', $this->objectProperty(), get_class($object), gettype($key)), __LINE__);
152
+
thrownew\InvalidArgumentException(sprintf('Property "%s" of "%s" must be scalar, "%s" returned', $this->objectProperty(), get_class($object), gettype($key)), __LINE__);
thrownewInvalidArgumentException(sprintf('Unable to create function parameter for method "%s" with type "%s" and name "%s"', $this->getMethod()->getName(), var_export($type, true), $name), __LINE__, $exception);
117
+
} catch (\InvalidArgumentException$exception) {
118
+
thrownew\InvalidArgumentException(sprintf('Unable to create function parameter for method "%s" with type "%s" and name "%s"', $this->getMethod()->getName(), var_export($type, true), $name), __LINE__, $exception);
thrownewInvalidArgumentException(sprintf('Unable to create function parameter for service "%s" with type "%s"', $this->getModel()->getName(), var_export($this->getTypeFromName($soapHeaderName), true)), __LINE__, $exception);
185
+
} catch (\InvalidArgumentException$exception) {
186
+
thrownew\InvalidArgumentException(sprintf('Unable to create function parameter for service "%s" with type "%s"', $this->getModel()->getName(), var_export($this->getTypeFromName($soapHeaderName), true)), __LINE__, $exception);
189
187
}
190
188
191
189
return$method;
@@ -260,7 +258,7 @@ protected function addAnnotationBlockForSoapHeaderMethod(PhpAnnotationBlock $ann
0 commit comments