Skip to content

Commit 3d02370

Browse files
committed
fix php stan issue
1 parent 5b61e19 commit 3d02370

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Controllers/ApiController.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function __construct()
1919

2020
private function setHeaders(): void
2121
{
22-
ini_set('display_errors', 1); // @phpstan-ignore-line
22+
ini_set('display_errors', 1);
2323
header("Access-Control-Allow-Origin: *");
2424
header("Access-Control-Allow-Headers: access");
2525
header("Access-Control-Allow-Methods: GET");
@@ -30,7 +30,7 @@ private function setHeaders(): void
3030
/**
3131
* @param array<string> $allowedValues
3232
*/
33-
private function getRequestParam(string $param, string $default = null, array $allowedValues = []): mixed
33+
private function getRequestParam(string $param, ?string $default, array $allowedValues = []): mixed
3434
{
3535
$value = $_REQUEST[$param] ?? $default;
3636
return $allowedValues ? (in_array($value, $allowedValues) ? $value : $default) : $value;

0 commit comments

Comments
 (0)