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
@@ -177,7 +177,7 @@ public function setInvocationType(?string $value): self
177
177
}
178
178
179
179
/**
180
-
* @param LogType::NONE|LogType::TAIL|null $value
180
+
* @param LogType::*|null $value
181
181
*/
182
182
publicfunctionsetLogType(?string$value): self
183
183
{
@@ -207,14 +207,14 @@ public function validate(): void
207
207
}
208
208
209
209
if (null !== $this->InvocationType) {
210
-
if (!isset(InvocationType::AVAILABLE_INVOCATIONTYPE[$this->InvocationType])) {
211
-
thrownewInvalidArgument(sprintf('Invalid parameter "InvocationType" when validating the "%s". The value "%s" is not a valid "InvocationType". Available values are %s.', __CLASS__, $this->InvocationType, implode(', ', array_keys(InvocationType::AVAILABLE_INVOCATIONTYPE))));
210
+
if (!InvocationType::exists($this->InvocationType)) {
211
+
thrownewInvalidArgument(sprintf('Invalid parameter "InvocationType" when validating the "%s". The value "%s" is not a valid "InvocationType".', __CLASS__, $this->InvocationType));
212
212
}
213
213
}
214
214
215
215
if (null !== $this->LogType) {
216
-
if (!isset(LogType::AVAILABLE_LOGTYPE[$this->LogType])) {
217
-
thrownewInvalidArgument(sprintf('Invalid parameter "LogType" when validating the "%s". The value "%s" is not a valid "LogType". Available values are %s.', __CLASS__, $this->LogType, implode(', ', array_keys(LogType::AVAILABLE_LOGTYPE))));
216
+
if (!LogType::exists($this->LogType)) {
217
+
thrownewInvalidArgument(sprintf('Invalid parameter "LogType" when validating the "%s". The value "%s" is not a valid "LogType".', __CLASS__, $this->LogType));
@@ -151,8 +151,8 @@ public function setMaxItems(?int $value): self
151
151
publicfunctionvalidate(): void
152
152
{
153
153
if (null !== $this->CompatibleRuntime) {
154
-
if (!isset(Runtime::AVAILABLE_RUNTIME[$this->CompatibleRuntime])) {
155
-
thrownewInvalidArgument(sprintf('Invalid parameter "CompatibleRuntime" when validating the "%s". The value "%s" is not a valid "Runtime". Available values are %s.', __CLASS__, $this->CompatibleRuntime, implode(', ', array_keys(Runtime::AVAILABLE_RUNTIME))));
154
+
if (!Runtime::exists($this->CompatibleRuntime)) {
155
+
thrownewInvalidArgument(sprintf('Invalid parameter "CompatibleRuntime" when validating the "%s". The value "%s" is not a valid "Runtime".', __CLASS__, $this->CompatibleRuntime));
@@ -213,8 +213,8 @@ public function validate(): void
213
213
$this->Content->validate();
214
214
215
215
foreach ($this->CompatibleRuntimesas$item) {
216
-
if (!isset(Runtime::AVAILABLE_RUNTIME[$item])) {
217
-
thrownewInvalidArgument(sprintf('Invalid parameter "CompatibleRuntimes" when validating the "%s". The value "%s" is not a valid "Runtime". Available values are %s.', __CLASS__, $item, implode(', ', array_keys(Runtime::AVAILABLE_RUNTIME))));
216
+
if (!Runtime::exists($item)) {
217
+
thrownewInvalidArgument(sprintf('Invalid parameter "CompatibleRuntimes" when validating the "%s". The value "%s" is not a valid "Runtime".', __CLASS__, $item));
0 commit comments