Skip to content

Commit 360f22c

Browse files
Merge branch '3.4' into 4.1
* 3.4: [php_cs] disable fopen_flags [DI] fix error in dumped container [CS] Remove unused variables passed to closures [DI] fix dumping setters before their inlined instances [CS] Remove empty comment [CS] Enforces null type hint on last position in phpDocs [CS] Use combined assignment operators when possible Fix a typo in error messages Don't return early as this bypasses the auto exit feature [Console] Add missing null to input values allowed types [PHPUnitBridge] Fix microtime() format bumped Symfony version to 3.4.17 updated VERSION for 3.4.16 updated CHANGELOG for 3.4.16 bumped Symfony version to 2.8.47 update CONTRIBUTORS for 2.8.46 updated VERSION for 2.8.46 updated CHANGELOG for 2.8.46
2 parents 50a5fd0 + 7ca50e2 commit 360f22c

14 files changed

+30
-32
lines changed

Button.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ public function handleRequest($request = null)
368368
/**
369369
* Submits data to the button.
370370
*
371-
* @param null|string $submittedData The data
371+
* @param string|null $submittedData The data
372372
* @param bool $clearMissing Not used
373373
*
374374
* @return $this

ChoiceList/Factory/ChoiceListFactoryInterface.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ interface ChoiceListFactoryInterface
3232
* argument.
3333
*
3434
* @param iterable $choices The choices
35-
* @param null|callable $value The callable generating the choice
35+
* @param callable|null $value The callable generating the choice
3636
* values
3737
*
3838
* @return ChoiceListInterface The choice list
@@ -47,7 +47,7 @@ public function createListFromChoices($choices, $value = null);
4747
* argument.
4848
*
4949
* @param ChoiceLoaderInterface $loader The choice loader
50-
* @param null|callable $value The callable generating the choice
50+
* @param callable|null $value The callable generating the choice
5151
* values
5252
*
5353
* @return ChoiceListInterface The choice list
@@ -81,14 +81,14 @@ public function createListFromLoader(ChoiceLoaderInterface $loader, $value = nul
8181
* attributes that should be added to the respective choice.
8282
*
8383
* @param ChoiceListInterface $list The choice list
84-
* @param null|array|callable $preferredChoices The preferred choices
85-
* @param null|callable $label The callable generating the
84+
* @param array|callable|null $preferredChoices The preferred choices
85+
* @param callable|null $label The callable generating the
8686
* choice labels
87-
* @param null|callable $index The callable generating the
87+
* @param callable|null $index The callable generating the
8888
* view indices
89-
* @param null|callable $groupBy The callable generating the
89+
* @param callable|null $groupBy The callable generating the
9090
* group names
91-
* @param null|array|callable $attr The callable generating the
91+
* @param array|callable|null $attr The callable generating the
9292
* HTML attributes
9393
*
9494
* @return ChoiceListView The choice list view

ChoiceList/Factory/PropertyAccessDecorator.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function getDecoratedFactory()
6060
* {@inheritdoc}
6161
*
6262
* @param iterable $choices The choices
63-
* @param null|callable|string|PropertyPath $value The callable or path for
63+
* @param callable|string|PropertyPath|null $value The callable or path for
6464
* generating the choice values
6565
*
6666
* @return ChoiceListInterface The choice list
@@ -91,7 +91,7 @@ public function createListFromChoices($choices, $value = null)
9191
* {@inheritdoc}
9292
*
9393
* @param ChoiceLoaderInterface $loader The choice loader
94-
* @param null|callable|string|PropertyPath $value The callable or path for
94+
* @param callable|string|PropertyPath|null $value The callable or path for
9595
* generating the choice values
9696
*
9797
* @return ChoiceListInterface The choice list
@@ -122,11 +122,11 @@ public function createListFromLoader(ChoiceLoaderInterface $loader, $value = nul
122122
* {@inheritdoc}
123123
*
124124
* @param ChoiceListInterface $list The choice list
125-
* @param null|array|callable|string|PropertyPath $preferredChoices The preferred choices
126-
* @param null|callable|string|PropertyPath $label The callable or path generating the choice labels
127-
* @param null|callable|string|PropertyPath $index The callable or path generating the view indices
128-
* @param null|callable|string|PropertyPath $groupBy The callable or path generating the group names
129-
* @param null|array|callable|string|PropertyPath $attr The callable or path generating the HTML attributes
125+
* @param array|callable|string|PropertyPath|null $preferredChoices The preferred choices
126+
* @param callable|string|PropertyPath|null $label The callable or path generating the choice labels
127+
* @param callable|string|PropertyPath|null $index The callable or path generating the view indices
128+
* @param callable|string|PropertyPath|null $groupBy The callable or path generating the group names
129+
* @param array|callable|string|PropertyPath|null $attr The callable or path generating the HTML attributes
130130
*
131131
* @return ChoiceListView The choice list view
132132
*/

ChoiceList/LazyChoiceList.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class LazyChoiceList implements ChoiceListInterface
3434
*
3535
* If null, choices are simply cast to strings.
3636
*
37-
* @var null|callable
37+
* @var callable|null
3838
*/
3939
private $value;
4040

@@ -46,7 +46,7 @@ class LazyChoiceList implements ChoiceListInterface
4646
* argument.
4747
*
4848
* @param ChoiceLoaderInterface $loader The choice loader
49-
* @param null|callable $value The callable generating the choice values
49+
* @param callable|null $value The callable generating the choice values
5050
*/
5151
public function __construct(ChoiceLoaderInterface $loader, callable $value = null)
5252
{

ChoiceList/Loader/ChoiceLoaderInterface.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ interface ChoiceLoaderInterface
3131
* The callable receives the choice as first and the array key as the second
3232
* argument.
3333
*
34-
* @param null|callable $value The callable which generates the values
34+
* @param callable|null $value The callable which generates the values
3535
* from choices
3636
*
3737
* @return ChoiceListInterface The loaded choice list
@@ -50,7 +50,7 @@ public function loadChoiceList($value = null);
5050
*
5151
* @param string[] $values An array of choice values. Non-existing
5252
* values in this array are ignored
53-
* @param null|callable $value The callable generating the choice values
53+
* @param callable|null $value The callable generating the choice values
5454
*
5555
* @return array An array of choices
5656
*/
@@ -68,7 +68,7 @@ public function loadChoicesForValues(array $values, $value = null);
6868
*
6969
* @param array $choices An array of choices. Non-existing choices in
7070
* this array are ignored
71-
* @param null|callable $value The callable generating the choice values
71+
* @param callable|null $value The callable generating the choice values
7272
*
7373
* @return string[] An array of choice values
7474
*/

Extension/Csrf/CsrfExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class CsrfExtension extends AbstractExtension
2929
/**
3030
* @param CsrfTokenManagerInterface $tokenManager The CSRF token manager
3131
* @param TranslatorInterface $translator The translator for translating error messages
32-
* @param null|string $translationDomain The translation domain for translating
32+
* @param string|null $translationDomain The translation domain for translating
3333
*/
3434
public function __construct(CsrfTokenManagerInterface $tokenManager, TranslatorInterface $translator = null, string $translationDomain = null)
3535
{

Extension/Validator/ViolationMapper/MappingRule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function getOrigin()
4646
*
4747
* @param string $propertyPath The property path to match against the rule
4848
*
49-
* @return null|FormInterface The mapped form or null
49+
* @return FormInterface|null The mapped form or null
5050
*/
5151
public function match($propertyPath)
5252
{

Extension/Validator/ViolationMapper/ViolationMapper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public function mapViolation(ConstraintViolation $violation, FormInterface $form
144144
* @param FormInterface $form The form to search
145145
* @param PropertyPathIteratorInterface $it The iterator at its current position
146146
*
147-
* @return null|FormInterface The found match or null
147+
* @return FormInterface|null The found match or null
148148
*/
149149
private function matchChild(FormInterface $form, PropertyPathIteratorInterface $it)
150150
{

FormConfigBuilderInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public function setRequired($required);
146146
/**
147147
* Sets the property path that the form should be mapped to.
148148
*
149-
* @param null|string|PropertyPathInterface $propertyPath The property path or null if the path should be set
149+
* @param string|PropertyPathInterface|null $propertyPath The property path or null if the path should be set
150150
* automatically based on the form's name
151151
*
152152
* @return $this The configuration object

FormConfigInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function getName();
3838
/**
3939
* Returns the property path that the form should be mapped to.
4040
*
41-
* @return null|PropertyPathInterface The property path
41+
* @return PropertyPathInterface|null The property path
4242
*/
4343
public function getPropertyPath();
4444

@@ -167,7 +167,7 @@ public function getData();
167167
/**
168168
* Returns the class of the form data or null if the data is scalar or an array.
169169
*
170-
* @return null|string The data class or null
170+
* @return string|null The data class or null
171171
*/
172172
public function getDataClass();
173173

0 commit comments

Comments
 (0)