Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6ab2067

Browse files
committed
minor #6880 Remove extra quotes from ExprBuilder::thenInvalid() usage (chalasr)
This PR was merged into the 2.7 branch. Discussion ---------- Remove extra quotes from ExprBuilder::thenInvalid() usage The given example gives extra quotes (`Invalid database driver ""value""` instead of (`Invalid database driver "value"`), because the value is automatically quoted due to the use of `json_encode`. Commits ------- dd54426 Remove extra quotes from ExprBuilder::thenInvalid() usage
2 parents ff43a84 + dd54426 commit 6ab2067

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/config/definition.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,7 @@ The builder is used for adding advanced validation rules to node definitions, li
726726
->isRequired()
727727
->validate()
728728
->ifNotInArray(array('mysql', 'sqlite', 'mssql'))
729-
->thenInvalid('Invalid database driver "%s"')
729+
->thenInvalid('Invalid database driver %s')
730730
->end()
731731
->end()
732732
->end()

0 commit comments

Comments
 (0)