Skip to content

Commit 6ede10e

Browse files
authored
Merge pull request #9 from johnnybenson/patch-1
Update SchemaValidatorService.php to fix deprecation notice
2 parents ef8e009 + 4c00723 commit 6ede10e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/SchemaValidatorService.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ private function normalizeData($data)
111111
public function validateOrThrow(
112112
$data,
113113
$schema,
114-
string $exceptionMessage = null,
114+
?string $exceptionMessage = null,
115115
bool $appendValidationDescriptions = false,
116116
int $failureHttpStatusCode = Response::HTTP_BAD_REQUEST,
117117
): bool {
@@ -144,7 +144,7 @@ public function validateOrThrow(
144144
public function validateEncodedStringOrThrow(
145145
string $data,
146146
$schema,
147-
string $exceptionMessage = null,
147+
?string $exceptionMessage = null,
148148
bool $appendValidationDescriptions = false,
149149
int $failureHttpStatusCode = Response::HTTP_BAD_REQUEST,
150150
): bool

0 commit comments

Comments
 (0)