mirror of
https://github.com/linuxserver/Heimdall.git
synced 2025-12-15 11:23:47 +09:00
Updates to vendors etc
This commit is contained in:
@@ -16,11 +16,10 @@ use Symfony\Component\HttpFoundation\Response;
|
||||
|
||||
final class ResponseStatusCodeSame extends Constraint
|
||||
{
|
||||
private int $statusCode;
|
||||
|
||||
public function __construct(int $statusCode)
|
||||
{
|
||||
$this->statusCode = $statusCode;
|
||||
public function __construct(
|
||||
private int $statusCode,
|
||||
private readonly bool $verbose = true,
|
||||
) {
|
||||
}
|
||||
|
||||
public function toString(): string
|
||||
@@ -49,6 +48,6 @@ final class ResponseStatusCodeSame extends Constraint
|
||||
*/
|
||||
protected function additionalFailureDescription($response): string
|
||||
{
|
||||
return (string) $response;
|
||||
return $this->verbose ? (string) $response : explode("\r\n\r\n", (string) $response)[0];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user