Skip to content

Commit 7ca50e2

Browse files
Merge branch '2.8' into 3.4
* 2.8: [php_cs] disable fopen_flags [CS] Remove unused variables passed to closures [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 [Console] Add missing null to input values allowed types [PHPUnitBridge] Fix microtime() format 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 540602c + 3639c88 commit 7ca50e2

16 files changed

+32
-34
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
@@ -93,7 +93,7 @@ public function createListFromChoices($choices, $value = null)
9393
* {@inheritdoc}
9494
*
9595
* @param ChoiceLoaderInterface $loader The choice loader
96-
* @param null|callable|string|PropertyPath $value The callable or path for
96+
* @param callable|string|PropertyPath|null $value The callable or path for
9797
* generating the choice values
9898
*
9999
* @return ChoiceListInterface The choice list
@@ -126,11 +126,11 @@ public function createListFromLoader(ChoiceLoaderInterface $loader, $value = nul
126126
* {@inheritdoc}
127127
*
128128
* @param ChoiceListInterface $list The choice list
129-
* @param null|array|callable|string|PropertyPath $preferredChoices The preferred choices
130-
* @param null|callable|string|PropertyPath $label The callable or path generating the choice labels
131-
* @param null|callable|string|PropertyPath $index The callable or path generating the view indices
132-
* @param null|callable|string|PropertyPath $groupBy The callable or path generating the group names
133-
* @param null|array|callable|string|PropertyPath $attr The callable or path generating the HTML attributes
129+
* @param array|callable|string|PropertyPath|null $preferredChoices The preferred choices
130+
* @param callable|string|PropertyPath|null $label The callable or path generating the choice labels
131+
* @param callable|string|PropertyPath|null $index The callable or path generating the view indices
132+
* @param callable|string|PropertyPath|null $groupBy The callable or path generating the group names
133+
* @param array|callable|string|PropertyPath|null $attr The callable or path generating the HTML attributes
134134
*
135135
* @return ChoiceListView The choice list view
136136
*/

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

@@ -60,7 +60,7 @@ class LazyChoiceList implements ChoiceListInterface
6060
* argument.
6161
*
6262
* @param ChoiceLoaderInterface $loader The choice loader
63-
* @param null|callable $value The callable generating the choice values
63+
* @param callable|null $value The callable generating the choice values
6464
*/
6565
public function __construct(ChoiceLoaderInterface $loader, callable $value = null)
6666
{

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, $translationDomain = null)
3535
{

Extension/Csrf/Type/FormTypeCsrfExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class FormTypeCsrfExtension extends AbstractTypeExtension
3838
* @param bool $defaultEnabled
3939
* @param string $defaultFieldName
4040
* @param TranslatorInterface $translator
41-
* @param null|string $translationDomain
41+
* @param string|null $translationDomain
4242
* @param ServerParams $serverParams
4343
*/
4444
public function __construct(CsrfTokenManagerInterface $defaultTokenManager, $defaultEnabled = true, $defaultFieldName = '_token', TranslatorInterface $translator = null, $translationDomain = null, ServerParams $serverParams = null)

Extension/Validator/Type/UploadValidatorExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class UploadValidatorExtension extends AbstractTypeExtension
2727

2828
/**
2929
* @param TranslatorInterface $translator The translator for translating error messages
30-
* @param null|string $translationDomain The translation domain for translating
30+
* @param string|null $translationDomain The translation domain for translating
3131
*/
3232
public function __construct(TranslatorInterface $translator, $translationDomain = null)
3333
{

Extension/Validator/ViolationMapper/MappingRule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function getOrigin()
5151
*
5252
* @param string $propertyPath The property path to match against the rule
5353
*
54-
* @return null|FormInterface The mapped form or null
54+
* @return FormInterface|null The mapped form or null
5555
*/
5656
public function match($propertyPath)
5757
{

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
{

0 commit comments

Comments
 (0)