Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb69a366

Browse files
committed
[Form] type cannot be a FormTypeInterface anymore
1 parent64a2627 commitb69a366

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

‎src/Symfony/Component/Form/Form.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -849,8 +849,8 @@ public function add($child, $type = null, array $options = [])
849849

850850
$child = (string)$child;
851851

852-
if (null !==$type && !\is_string($type) && !$typeinstanceof FormTypeInterface) {
853-
thrownewUnexpectedTypeException($type,'string orSymfony\Component\Form\FormTypeInterface');
852+
if (null !==$type && !\is_string($type)) {
853+
thrownewUnexpectedTypeException($type,'string ornull');
854854
}
855855

856856
// Never initialize child forms automatically

‎src/Symfony/Component/Form/FormBuilder.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ public function add($child, $type = null, array $options = [])
6666
thrownewUnexpectedTypeException($child,'string or Symfony\Component\Form\FormBuilderInterface');
6767
}
6868

69-
if (null !==$type && !\is_string($type) && !$typeinstanceof FormTypeInterface) {
70-
thrownewUnexpectedTypeException($type,'string orSymfony\Component\Form\FormTypeInterface');
69+
if (null !==$type && !\is_string($type)) {
70+
thrownewUnexpectedTypeException($type,'string ornull');
7171
}
7272

7373
// Add to "children" to maintain order

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp