Skip to content
Snippets Groups Projects
Commit 3b74cd27 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/+/74935


Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 4bc35d24
Branches
Tags
No related merge requests found
......@@ -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"
* }
* )
*/
......
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