Commit 7e0fe3e0 authored by Julian Hofmann's avatar Julian Hofmann Committed by Christian Kuhn
Browse files

[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/+/74794

Tested-by: Simon Schaufelberger's avatarSimon Schaufelberger <simonschaufi+typo3@gmail.com>
Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Simon Schaufelberger's avatarSimon Schaufelberger <simonschaufi+typo3@gmail.com>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 391646f3
......@@ -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"
* }
* )
*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment