Aggiornato Composer
This commit is contained in:
@@ -22,7 +22,7 @@ final class ResponseCookieValueSame extends Constraint
|
||||
private $path;
|
||||
private $domain;
|
||||
|
||||
public function __construct(string $name, string $value, string $path = '/', string $domain = null)
|
||||
public function __construct(string $name, string $value, string $path = '/', ?string $domain = null)
|
||||
{
|
||||
$this->name = $name;
|
||||
$this->value = $value;
|
||||
@@ -59,7 +59,7 @@ final class ResponseCookieValueSame extends Constraint
|
||||
return false;
|
||||
}
|
||||
|
||||
return $this->value === $cookie->getValue();
|
||||
return $this->value === (string) $cookie->getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user