From 2e0375dccaf44d7b0f8a5144e3f8f8f6ce911886 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Niedzielski?= Date: Mon, 18 Sep 2023 16:45:41 +0200 Subject: [PATCH] Fixed code style --- src/lib/Base/Exceptions/ContentFieldValidationException.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Base/Exceptions/ContentFieldValidationException.php b/src/lib/Base/Exceptions/ContentFieldValidationException.php index e0f646df1e..0b8091dca4 100644 --- a/src/lib/Base/Exceptions/ContentFieldValidationException.php +++ b/src/lib/Base/Exceptions/ContentFieldValidationException.php @@ -90,7 +90,7 @@ private function generateValidationErrorsMessages(): string } /** @var callable(string|\Ibexa\Contracts\Core\Repository\Values\Translation): string $convertToString */ - $convertToString = function ($error): string { + $convertToString = static function ($error): string { return (string)$error; }; $validationErrors = array_map($convertToString, $validationErrors);