Skip to content

Commit 14c45f4

Browse files
Merge branch '5.3' into 5.4
* 5.3: cs fix [DependencyInjection][Console] tighten types [Lock] fix derivating semaphore from key [Notifier] Fix TransportTestCase [Security\Core] Fix wrong deprecation message in UserPasswordValidator
2 parents 38f0e35 + 64b09eb commit 14c45f4

File tree

14 files changed

+37
-73
lines changed

14 files changed

+37
-73
lines changed

src/Symfony/Component/Console/Input/InputArgument.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ class InputArgument
3131
private $description;
3232

3333
/**
34-
* @param string $name The argument name
35-
* @param int|null $mode The argument mode: self::REQUIRED or self::OPTIONAL
36-
* @param string $description A description text
37-
* @param mixed $default The default value (for self::OPTIONAL mode only)
34+
* @param string $name The argument name
35+
* @param int|null $mode The argument mode: self::REQUIRED or self::OPTIONAL
36+
* @param string $description A description text
37+
* @param string|bool|int|float|array|null $default The default value (for self::OPTIONAL mode only)
3838
*
3939
* @throws InvalidArgumentException When argument mode is not valid
4040
*/
@@ -86,7 +86,7 @@ public function isArray()
8686
/**
8787
* Sets the default value.
8888
*
89-
* @param mixed $default The default value
89+
* @param string|bool|int|float|array|null $default
9090
*
9191
* @throws LogicException When incorrect default value is given
9292
*/
@@ -110,7 +110,7 @@ public function setDefault($default = null)
110110
/**
111111
* Returns the default value.
112112
*
113-
* @return mixed
113+
* @return string|bool|int|float|array|null
114114
*/
115115
public function getDefault()
116116
{

src/Symfony/Component/Console/Input/InputDefinition.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,7 @@ public function getArgumentRequiredCount()
186186
}
187187

188188
/**
189-
* Gets the default values.
190-
*
191-
* @return array An array of default values
189+
* @return array<string|bool|int|float|array|null>
192190
*/
193191
public function getArgumentDefaults()
194192
{
@@ -329,9 +327,7 @@ public function getOptionForShortcut(string $shortcut)
329327
}
330328

331329
/**
332-
* Gets an array of default values.
333-
*
334-
* @return array An array of all default values
330+
* @return array<string|bool|int|float|array|null>
335331
*/
336332
public function getOptionDefaults()
337333
{

src/Symfony/Component/Console/Input/InputInterface.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ public function hasParameterOption($values, bool $onlyParams = false);
5151
* Does not necessarily return the correct result for short options
5252
* when multiple flags are combined in the same option.
5353
*
54-
* @param string|array $values The value(s) to look for in the raw parameters (can be an array)
55-
* @param mixed $default The default value to return if no result is found
56-
* @param bool $onlyParams Only check real parameters, skip those following an end of options (--) signal
54+
* @param string|array $values The value(s) to look for in the raw parameters (can be an array)
55+
* @param string|bool|int|float|array|null $default The default value to return if no result is found
56+
* @param bool $onlyParams Only check real parameters, skip those following an end of options (--) signal
5757
*
5858
* @return mixed The option value
5959
*/
@@ -76,7 +76,7 @@ public function validate();
7676
/**
7777
* Returns all the given arguments merged with the default values.
7878
*
79-
* @return array
79+
* @return array<string|bool|int|float|array|null>
8080
*/
8181
public function getArguments();
8282

@@ -108,7 +108,7 @@ public function hasArgument(string $name);
108108
/**
109109
* Returns all the given options merged with the default values.
110110
*
111-
* @return array
111+
* @return array<string|bool|int|float|array|null>
112112
*/
113113
public function getOptions();
114114

src/Symfony/Component/Console/Input/InputOption.php

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ class InputOption
5353
private $description;
5454

5555
/**
56-
* @param string|array|null $shortcut The shortcuts, can be null, a string of shortcuts delimited by | or an array of shortcuts
57-
* @param int|null $mode The option mode: One of the VALUE_* constants
58-
* @param mixed $default The default value (must be null for self::VALUE_NONE)
56+
* @param string|array|null $shortcut The shortcuts, can be null, a string of shortcuts delimited by | or an array of shortcuts
57+
* @param int|null $mode The option mode: One of the VALUE_* constants
58+
* @param string|bool|int|float|array|null $default The default value (must be null for self::VALUE_NONE)
5959
*
6060
* @throws InvalidArgumentException If option mode is invalid or incompatible
6161
*/
@@ -173,11 +173,7 @@ public function isNegatable(): bool
173173
}
174174

175175
/**
176-
* Sets the default value.
177-
*
178-
* @param mixed $default The default value
179-
*
180-
* @throws LogicException When incorrect default value is given
176+
* @param string|bool|int|float|array|null $default
181177
*/
182178
public function setDefault($default = null)
183179
{
@@ -199,7 +195,7 @@ public function setDefault($default = null)
199195
/**
200196
* Returns the default value.
201197
*
202-
* @return mixed
198+
* @return string|bool|int|float|array|null
203199
*/
204200
public function getDefault()
205201
{

src/Symfony/Component/Console/Output/TrimmedBufferOutput.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,7 @@ class TrimmedBufferOutput extends Output
2424
private $maxLength;
2525
private $buffer = '';
2626

27-
public function __construct(
28-
int $maxLength,
29-
?int $verbosity = self::VERBOSITY_NORMAL,
30-
bool $decorated = false,
31-
OutputFormatterInterface $formatter = null
32-
) {
27+
public function __construct(int $maxLength, ?int $verbosity = self::VERBOSITY_NORMAL, bool $decorated = false, OutputFormatterInterface $formatter = null) {
3328
if ($maxLength <= 0) {
3429
throw new InvalidArgumentException(sprintf('"%s()" expects a strictly positive maxLength. Got %d.', __METHOD__, $maxLength));
3530
}

src/Symfony/Component/Console/Question/Question.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ class Question
3333
private $multiline = false;
3434

3535
/**
36-
* @param string $question The question to ask to the user
37-
* @param mixed $default The default answer to return if the user enters nothing
36+
* @param string $question The question to ask to the user
37+
* @param string|bool|int|float|null $default The default answer to return if the user enters nothing
3838
*/
3939
public function __construct(string $question, $default = null)
4040
{
@@ -55,7 +55,7 @@ public function getQuestion()
5555
/**
5656
* Returns the default answer.
5757
*
58-
* @return mixed
58+
* @return string|bool|int|float|null
5959
*/
6060
public function getDefault()
6161
{

src/Symfony/Component/DependencyInjection/Container.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public function getParameterBag()
107107
/**
108108
* Gets a parameter.
109109
*
110-
* @return mixed
110+
* @return array|bool|string|int|float|null
111111
*
112112
* @throws InvalidArgumentException if the parameter is not defined
113113
*/
@@ -127,8 +127,8 @@ public function hasParameter(string $name)
127127
/**
128128
* Sets a parameter.
129129
*
130-
* @param string $name The parameter name
131-
* @param mixed $value The parameter value
130+
* @param string $name The parameter name
131+
* @param array|bool|string|int|float|null $value The parameter value
132132
*/
133133
public function setParameter(string $name, $value)
134134
{

src/Symfony/Component/DependencyInjection/ContainerInterface.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function has(string $id);
6363
public function initialized(string $id);
6464

6565
/**
66-
* @return mixed
66+
* @return array|bool|string|int|float|null
6767
*
6868
* @throws InvalidArgumentException if the parameter is not defined
6969
*/
@@ -77,8 +77,8 @@ public function hasParameter(string $name);
7777
/**
7878
* Sets a parameter.
7979
*
80-
* @param string $name The parameter name
81-
* @param mixed $value The parameter value
80+
* @param string $name The parameter name
81+
* @param array|bool|string|int|float|null $value The parameter value
8282
*/
8383
public function setParameter(string $name, $value);
8484
}

src/Symfony/Component/DependencyInjection/ParameterBag/ContainerBag.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function all()
3636
/**
3737
* {@inheritdoc}
3838
*
39-
* @return mixed
39+
* @return array|bool|string|int|float|null
4040
*/
4141
public function get(string $name)
4242
{

src/Symfony/Component/DependencyInjection/ParameterBag/ParameterBagInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function all();
4545
/**
4646
* Gets a service container parameter.
4747
*
48-
* @return mixed The parameter value
48+
* @return array|bool|string|int|float|null
4949
*
5050
* @throws ParameterNotFoundException if the parameter is not defined
5151
*/
@@ -59,7 +59,7 @@ public function remove(string $name);
5959
/**
6060
* Sets a service container parameter.
6161
*
62-
* @param mixed $value The parameter value
62+
* @param array|bool|string|int|float|null $value The parameter value
6363
*
6464
* @throws LogicException if the parameter can not be set
6565
*/

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy