diff options
| author | Greg Roach <fisharebest@webtrees.net> | 2018-08-04 17:45:34 +0100 |
|---|---|---|
| committer | Greg Roach <fisharebest@webtrees.net> | 2018-08-04 17:45:34 +0100 |
| commit | 69c36a120a7878f299c7c53aa5c2da9e8a2e1c6c (patch) | |
| tree | f2ab9b134d7c24f79c4fa66f581cc6387e1938ed /vendor/symfony/http-foundation/RequestMatcher.php | |
| parent | d69397b0fb0a7e71220076299d45dc2ac034b754 (diff) | |
| download | webtrees-69c36a120a7878f299c7c53aa5c2da9e8a2e1c6c.tar.gz webtrees-69c36a120a7878f299c7c53aa5c2da9e8a2e1c6c.tar.bz2 webtrees-69c36a120a7878f299c7c53aa5c2da9e8a2e1c6c.zip | |
Update vendor dependencies
Diffstat (limited to 'vendor/symfony/http-foundation/RequestMatcher.php')
| -rw-r--r-- | vendor/symfony/http-foundation/RequestMatcher.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vendor/symfony/http-foundation/RequestMatcher.php b/vendor/symfony/http-foundation/RequestMatcher.php index 076d077c7d..6b4cef147d 100644 --- a/vendor/symfony/http-foundation/RequestMatcher.php +++ b/vendor/symfony/http-foundation/RequestMatcher.php @@ -145,11 +145,11 @@ class RequestMatcher implements RequestMatcherInterface */ public function matches(Request $request) { - if ($this->schemes && !in_array($request->getScheme(), $this->schemes, true)) { + if ($this->schemes && !\in_array($request->getScheme(), $this->schemes, true)) { return false; } - if ($this->methods && !in_array($request->getMethod(), $this->methods, true)) { + if ($this->methods && !\in_array($request->getMethod(), $this->methods, true)) { return false; } @@ -173,6 +173,6 @@ class RequestMatcher implements RequestMatcherInterface // Note to future implementors: add additional checks above the // foreach above or else your check might not be run! - return 0 === count($this->ips); + return 0 === \count($this->ips); } } |
