10000 minor #15324 [Form] updated exception message of ButtonBuilder::setRe… · seven-io/symfony@45861d4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 45861d4

Browse files
committed
minor symfony#15324 [Form] updated exception message of ButtonBuilder::setRequestHandler() (issei-m)
This PR was submitted for the 2.7 branch but it was merged into the 2.3 branch instead (closes symfony#15324). Discussion ---------- [Form] updated exception message of ButtonBuilder::setRequestHandler() | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Commits ------- b483ee2 [Form] updated exception message of ButtonBuilder::setRequestHandler()
2 parents 510b2d2 + b483ee2 commit 45861d4

File tree< C804 /h2>

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Form/ButtonBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ public function setMethod($method)
498498
*/
499499
public function setRequestHandler(RequestHandlerInterface $requestHandler)
500500
{
501-
throw new BadMethodCallException('Buttons do not support form processors.');
501+
throw new BadMethodCallException('Buttons do not support request handlers.');
502502
}
503503

504504
/**

0 commit comments

Comments
 (0)
0