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,6 +16,13 @@ use Symfony\Component\HttpFoundation\Response;
final class ResponseIsUnprocessable extends Constraint
{
/**
* @param bool $verbose If true, the entire response is printed on failure. If false, the response body is omitted.
*/
public function __construct(private readonly bool $verbose = true)
{
}
public function toString(): string
{
return 'is unprocessable';
@@ -38,10 +45,10 @@ final class ResponseIsUnprocessable extends Constraint
}
/**
* @param Response $other
* @param Response $response
*/
protected function additionalFailureDescription($other): string
protected function additionalFailureDescription($response): string
{
return (string) $other;
return $this->verbose ? (string) $response : explode("\r\n\r\n", (string) $response)[0];
}
}