File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ public function __construct()
19
19
20
20
private function setHeaders (): void
21
21
{
22
- ini_set ('display_errors ' , 1 ); // @phpstan-ignore-line
22
+ ini_set ('display_errors ' , 1 );
23
23
header ("Access-Control-Allow-Origin: * " );
24
24
header ("Access-Control-Allow-Headers: access " );
25
25
header ("Access-Control-Allow-Methods: GET " );
@@ -30,7 +30,7 @@ private function setHeaders(): void
30
30
/**
31
31
* @param array<string> $allowedValues
32
32
*/
33
- private function getRequestParam (string $ param , string $ default = null , array $ allowedValues = []): mixed
33
+ private function getRequestParam (string $ param , ? string $ default , array $ allowedValues = []): mixed
34
34
{
35
35
$ value = $ _REQUEST [$ param ] ?? $ default ;
36
36
return $ allowedValues ? (in_array ($ value , $ allowedValues ) ? $ value : $ default ) : $ value ;
You can’t perform that action at this time.
0 commit comments