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

Appearance settings

Commit 7f0f679

Browse filesBrowse files
committed
PHPDoc fixes
1 parent ddaf1be commit 7f0f679
Copy full SHA for 7f0f679

8 files changed

+19
-19
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/ButtonBuilder.php
+6-6Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ class ButtonBuilder implements \IteratorAggregate, FormBuilderInterface
5050
private $options;
5151

5252
/**
53-
* @param string $name The name of the button
54-
* @param array $options The button's options
53+
* @param string|int $name The name of the button
54+
* @param array $options The button's options
5555
*
5656
* @throws InvalidArgumentException if the name is empty
5757
*/
@@ -87,7 +87,7 @@ public function add($child, $type = null, array $options = [])
8787
*
8888
* This method should not be invoked.
8989
*
90-
* @param string $name
90+
* @param string|int $name
9191
* @param string|FormTypeInterface $type
9292
* @param array $options
9393
*
@@ -103,7 +103,7 @@ public function create($name, $type = null, array $options = [])
103103
*
104104
* This method should not be invoked.
105105
*
106-
* @param string $name
106+
* @param string|int $name
107107
*
108108
* @throws BadMethodCallException
109109
*/
@@ -117,7 +117,7 @@ public function get($name)
117117
*
118118
* This method should not be invoked.
119119
*
120-
* @param string $name
120+
* @param string|int $name
121121
*
122122
* @throws BadMethodCallException
123123
*/
@@ -129,7 +129,7 @@ public function remove($name)
129129
/**
130130
* Unsupported method.
131131
*
132-
* @param string $name
132+
* @param string|int $name
133133
*
134134
* @return bool Always returns false
135135
*/

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/Form.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ class Form implements \IteratorAggregate, FormInterface
140140
private $lockSetData = false;
141141

142142
/**
143-
* @var string|int|null
143+
* @var string
144144
*/
145145
private $name;
146146

@@ -211,7 +211,7 @@ public function getPropertyPath()
211211
return $this->propertyPath;
212212
}
213213

214-
if (null === $this->name || '' === $this->name) {
214+
if ('' === $this->name) {
215215
return null;
216216
}
217217

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/FormBuilder.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class FormBuilder extends FormConfigBuilder implements \IteratorAggregate, FormB
3838
private $unresolvedChildren = [];
3939

4040
/**
41-
* @param string $name
41+
* @param string|int $name
4242
* @param string|null $dataClass
4343
* @param EventDispatcherInterface $dispatcher
4444
* @param FormFactoryInterface $factory

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/FormBuilderInterface.php
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function add($child, $type = null, array $options = []);
3434
/**
3535
* Creates a form builder.
3636
*
37-
* @param string $name The name of the form or the name of the property
37+
* @param string|int $name The name of the form or the name of the property
3838
* @param string|null $type The type of the form or null if name is a property
3939
* @param array $options The options
4040
*
@@ -45,7 +45,7 @@ public function create($name, $type = null, array $options = []);
4545
/**
4646
* Returns a child by name.
4747
*
48-
* @param string $name The name of the child
48+
* @param string|int $name The name of the child
4949
*
5050
* @return self
5151
*
@@ -56,7 +56,7 @@ public function get($name);
5656
/**
5757
* Removes the field with the given name.
5858
*
59-
* @param string $name
59+
* @param string|int $name
6060
*
6161
* @return self
6262
*/
@@ -65,7 +65,7 @@ public function remove($name);
6565
/**
6666
* Returns whether a field with the given name exists.
6767
*
68-
* @param string $name
68+
* @param string|int $name
6969
*
7070
* @return bool
7171
*/

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/FormConfigBuilder.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -813,7 +813,7 @@ public static function validateName($name)
813813
* * contains only letters, digits, numbers, underscores ("_"),
814814
* hyphens ("-") and colons (":")
815815
*
816-
* @param string|null $name The tested form name
816+
* @param string|int $name The tested form name
817817
*
818818
* @return bool Whether the name is valid
819819
*/

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/FormInterface.php
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function add($child, $type = null, array $options = []);
5858
/**
5959
* Returns the child with the given name.
6060
*
61-
* @param string $name The name of the child
61+
* @param string|int $name The name of the child
6262
*
6363
* @return self
6464
*
@@ -69,7 +69,7 @@ public function get($name);
6969
/**
7070
* Returns whether a child with the given name exists.
7171
*
72-
* @param string $name The name of the child
72+
* @param string|int $name The name of the child
7373
*
7474
* @return bool
7575
*/
@@ -78,7 +78,7 @@ public function has($name);
7878
/**
7979
* Removes a child from the form.
8080
*
81-
* @param string $name The name of the child to remove
81+
* @param string|int $name The name of the child to remove
8282
*
8383
* @return $this
8484
*

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/ResolvedFormType.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ public function getOptionsResolver()
204204
*
205205
* Override this method if you want to customize the builder class.
206206
*
207-
* @param string $name The name of the builder
207+
* @param string|int $name The name of the builder
208208
* @param string|null $dataClass The data class
209209
* @param FormFactoryInterface $factory The current form factory
210210
* @param array $options The builder options

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/ResolvedFormTypeInterface.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function getTypeExtensions();
5252
* Creates a new form builder for this type.
5353
*
5454
* @param FormFactoryInterface $factory The form factory
55-
* @param string $name The name for the builder
55+
* @param string|int $name The name for the builder
5656
* @param array $options The builder options
5757
*
5858
* @return FormBuilderInterface The created form builder

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.