diff --git a/src/TokenAuthentication/TokenSearch.php b/src/TokenAuthentication/TokenSearch.php index d69120a..5f1817d 100644 --- a/src/TokenAuthentication/TokenSearch.php +++ b/src/TokenAuthentication/TokenSearch.php @@ -28,7 +28,7 @@ public function __invoke(Request $request) if (isset($this->options['header'])) { if ($request->hasHeader($this->options['header'])) { $header = $request->getHeader($this->options['header'])[0]; - if (preg_match($this->options['regexp'], $header, $matches)) { + if (preg_match($this->options['regex'], $header, $matches)) { return $matches[1]; } }