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
@@ -102,15 +108,15 @@ public function getValidate(): int {
102
108
/**
103
109
* Sets how to handle object validation
104
110
*
105
-
* @param int $validate 0 - no validation, 1 - validate and skip on issue, 2 - validate and fail on issue
111
+
* @param int $value 0 - no validation, 1 - validate and skip on issue, 2 - validate and fail on issue
106
112
*
107
-
* @template $validate of self::VALIDATE_*
113
+
* @template $value of self::VALIDATE_*
108
114
*/
109
-
publicfunctionsetValidate(int$validate): void {
110
-
if (!in_array($validate, self::VALIDATE_OPTIONS, true)) {
111
-
thrownew\InvalidArgumentException("Invalid validation handling type <$validate> specified, only VALIDATE_NONE, VALIDATE_SKIP or VALIDATE_FAIL allowed");
115
+
publicfunctionsetValidate(int$value): void {
116
+
if (!in_array($value, CalendarImportOptions::VALIDATE_OPTIONS, true)) {
0 commit comments