Skip to content
This repository was archived by the owner on May 1, 2021. It is now read-only.

Commit 41e6071

Browse files
committed
Fixes a typo, thanks to: #1
1 parent 50090b9 commit 41e6071

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RestApiHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public static function checkAndSanitizeRequiredParameters($data, $params) {
2525
if (!isset($sanitizer[1])) $sanitizer = 'text';
2626
else $sanitizer = $sanitizer[1];
2727

28-
if(!method_exists(wire('sanitizer'), $sanitizer)) throw new \Exception("Sanitizer: '$sanitizer' ist no valid sanitizer", 400);
28+
if(!method_exists(wire('sanitizer'), $sanitizer)) throw new \Exception("Sanitizer: '$sanitizer' is no valid sanitizer", 400);
2929

3030
$data->$name = wire('sanitizer')->$sanitizer($data->$name);
3131
}

0 commit comments

Comments
 (0)