mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-11 17:44:44 +08:00
Added nullsafe operator to simplify conditions
This commit is contained in:
@@ -28,7 +28,7 @@ class CorsTest extends ApiTestCase
|
||||
public function responseIncludesCorsHeadersIfOriginIsSent(
|
||||
string $origin,
|
||||
string $endpoint,
|
||||
int $expectedStatusCode
|
||||
int $expectedStatusCode,
|
||||
): void {
|
||||
$resp = $this->callApiWithKey(self::METHOD_GET, $endpoint, [
|
||||
RequestOptions::HEADERS => ['Origin' => $origin],
|
||||
|
||||
Reference in New Issue
Block a user