Skip to content

Commit b028c2b

Browse files
committed
Fix tests
1 parent e847419 commit b028c2b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" bootstrap="vendor/autoload.php" colors="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" bootstrap="vendor/autoload.php" colors="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false" failOnWarning="true">
33
<testsuites>
44
<testsuite name="Package Test Suite">
55
<directory suffix=".php">./tests/Unit/</directory>

src/Vaults/DigestVault.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function directive(): DirectiveInterface
6161
*/
6262
private function tokenHash(TokenInterface $token): string
6363
{
64-
$method = $_SERVER['REQUEST_METHOD'] ?: 'GET';
64+
$method = isset($_SERVER['REQUEST_METHOD']) ? $_SERVER['REQUEST_METHOD'] : 'GET';
6565

6666
return md5(implode(':', [
6767
md5(sprintf('%s:%s:%s', $token->username(), $this->realm(), $this->password())),

0 commit comments

Comments
 (0)