Skip to content

Commit 76bd521

Browse files
committed
fix: make try static
1 parent 6f0cf02 commit 76bd521

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ public static function params(string $key = null, mixed $default = null): mixed
154154
* @param bool $safeData Sanitize output?
155155
* @param bool $noEmptyString Remove empty strings from return data?
156156
*/
157-
function try(array $params, bool $safeData = true, bool $noEmptyString = false)
157+
public static function try(array $params, bool $safeData = true, bool $noEmptyString = false)
158158
{
159159
$data = static::get($params, $safeData);
160160
$dataKeys = array_keys($data);

0 commit comments

Comments
 (0)