Skip to content

Commit a0e9c74

Browse files
committed
Null endpoint handling
1 parent 2a3d98d commit a0e9c74

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/VerifierServer/Server.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@ protected function route(
248248
return;
249249
}
250250

251+
$endpoint = null;
251252
$allowed_methods = (isset($this->endpoints[$uri]) && ($endpoint = $this->endpoints[$uri]) instanceof EndpointInterface)
252253
? array_merge($endpoint->getAllowedMethods(), self::DEFAULT_METHODS)
253254
: self::DEFAULT_METHODS;

0 commit comments

Comments
 (0)