Updates to vendors etc

This commit is contained in:
Chris Hunt
2025-07-11 15:57:48 +01:00
parent d972cbcd0a
commit 8fb6438254
8043 changed files with 248005 additions and 189479 deletions

View File

@@ -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];
}
}