From 3b74cd27c2ce833161702944de792e74e29a1921 Mon Sep 17 00:00:00 2001 From: Julian Hofmann <noreply@example.com> Date: Tue, 31 May 2022 13:15:01 +0000 Subject: [PATCH] [TASK] Replace single quotes by double quotes in annotations Doctrine (now?) does not allow values to be surrounded by single quotes. It expects a `PlainValue` but struggles over the quotes. Replacing the single quotes with double quotes solves this problem: `[Syntax Error] Expected PlainValue, got ''' at position ***` Releases: main, 11.5 Resolves: #97716 Change-Id: I34042f350bcac2d6518f73be9796d39e0bcc64a7 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/74935 Tested-by: core-ci <typo3@b13.com> Tested-by: Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch> --- ...19-CustomErrorMessagesInRegularExpressionValidator.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/typo3/sysext/core/Documentation/Changelog/11.0/Feature-91719-CustomErrorMessagesInRegularExpressionValidator.rst b/typo3/sysext/core/Documentation/Changelog/11.0/Feature-91719-CustomErrorMessagesInRegularExpressionValidator.rst index 364499fbd081..35f89c79040b 100644 --- a/typo3/sysext/core/Documentation/Changelog/11.0/Feature-91719-CustomErrorMessagesInRegularExpressionValidator.rst +++ b/typo3/sysext/core/Documentation/Changelog/11.0/Feature-91719-CustomErrorMessagesInRegularExpressionValidator.rst @@ -29,8 +29,8 @@ Example: * @TYPO3\CMS\Extbase\Annotation\Validate( * "RegularExpression", * options={ - * "regularExpression": '/^SO[0-9]$/', - * "errorMessage": 'explain how to provide a valid value' + * "regularExpression": "/^SO[0-9]$/", + * "errorMessage": "explain how to provide a valid value" * } * ) */ @@ -48,8 +48,8 @@ It is also possible to provide a translation key to render a localized message: * @TYPO3\CMS\Extbase\Annotation\Validate( * "RegularExpression", * options={ - * "regularExpression": '/^SO[0-9]$/', - * "errorMessage": 'LLL:EXT:my_extension/path/to/xlf:translation.key' + * "regularExpression": "/^SO[0-9]$/", + * "errorMessage": "LLL:EXT:my_extension/path/to/xlf:translation.key" * } * ) */ -- GitLab