@@ -2210,7 +2210,7 @@ index cc024da461..00b79e915f 100644
2210
2210
{
2211
2211
$errors = [];
2212
2212
diff --git a/src/Symfony/Component/Console/Application.php b/src/Symfony/Component/Console/Application.php
2213
- index b7aaa6a29e..dd14cf2c5c 100644
2213
+ index f8526ae5ce..72da224185 100644
2214
2214
--- a/src/Symfony/Component/Console/Application.php
2215
2215
+++ b/src/Symfony/Component/Console/Application.php
2216
2216
@@ -114,5 +114,5 @@ class Application implements ResetInterface
@@ -2340,66 +2340,66 @@ index b7aaa6a29e..dd14cf2c5c 100644
2340
2340
{
2341
2341
foreach ($command->getHelperSet() as $helper) {
2342
2342
diff --git a/src/Symfony/Component/Console/Command/Command.php b/src/Symfony/Component/Console/Command/Command.php
2343
- index 704b112d1a..b296bffcbd 100644
2343
+ index fae37b686a..5bc670292d 100644
2344
2344
--- a/src/Symfony/Component/Console/Command/Command.php
2345
2345
+++ b/src/Symfony/Component/Console/Command/Command.php
2346
- @@ -145 ,5 +145 ,5 @@ class Command
2346
+ @@ -111 ,5 +111 ,5 @@ class Command
2347
2347
* @return void
2348
2348
*/
2349
2349
- public function ignoreValidationErrors()
2350
2350
+ public function ignoreValidationErrors(): void
2351
2351
{
2352
2352
$this->ignoreValidationErrors = true;
2353
- @@ -153 ,5 +153 ,5 @@ class Command
2353
+ @@ -119 ,5 +119 ,5 @@ class Command
2354
2354
* @return void
2355
2355
*/
2356
- - public function setApplication(Application $application = null )
2357
- + public function setApplication(Application $application = null ): void
2356
+ - public function setApplication(? Application $application)
2357
+ + public function setApplication(? Application $application): void
2358
2358
{
2359
- if (1 > \func_num_args()) {
2360
- @@ -171 ,5 +171 ,5 @@ class Command
2359
+ $this->application = $application;
2360
+ @@ -134 ,5 +134 ,5 @@ class Command
2361
2361
* @return void
2362
2362
*/
2363
2363
- public function setHelperSet(HelperSet $helperSet)
2364
2364
+ public function setHelperSet(HelperSet $helperSet): void
2365
2365
{
2366
2366
$this->helperSet = $helperSet;
2367
- @@ -200 ,5 +200 ,5 @@ class Command
2367
+ @@ -163 ,5 +163 ,5 @@ class Command
2368
2368
* @return bool
2369
2369
*/
2370
2370
- public function isEnabled()
2371
2371
+ public function isEnabled(): bool
2372
2372
{
2373
2373
return true;
2374
- @@ -210 ,5 +210 ,5 @@ class Command
2374
+ @@ -173 ,5 +173 ,5 @@ class Command
2375
2375
* @return void
2376
2376
*/
2377
2377
- protected function configure()
2378
2378
+ protected function configure(): void
2379
2379
{
2380
2380
}
2381
- @@ -228 ,5 +228 ,5 @@ class Command
2381
+ @@ -191 ,5 +191 ,5 @@ class Command
2382
2382
* @see setCode()
2383
2383
*/
2384
2384
- protected function execute(InputInterface $input, OutputInterface $output)
2385
2385
+ protected function execute(InputInterface $input, OutputInterface $output): int
2386
2386
{
2387
2387
throw new LogicException('You must override the execute() method in the concrete command class.');
2388
- @@ -242 ,5 +242 ,5 @@ class Command
2388
+ @@ -205 ,5 +205 ,5 @@ class Command
2389
2389
* @return void
2390
2390
*/
2391
2391
- protected function interact(InputInterface $input, OutputInterface $output)
2392
2392
+ protected function interact(InputInterface $input, OutputInterface $output): void
2393
2393
{
2394
2394
}
2395
- @@ -258 ,5 +258 ,5 @@ class Command
2395
+ @@ -221 ,5 +221 ,5 @@ class Command
2396
2396
* @return void
2397
2397
*/
2398
2398
- protected function initialize(InputInterface $input, OutputInterface $output)
2399
2399
+ protected function initialize(InputInterface $input, OutputInterface $output): void
2400
2400
{
2401
2401
}
2402
- @@ -701 ,5 +701 ,5 @@ class Command
2402
+ @@ -656 ,5 +656 ,5 @@ class Command
2403
2403
* @throws InvalidArgumentException if the helper is not defined
2404
2404
*/
2405
2405
- public function getHelper(string $name): mixed
@@ -2436,14 +2436,14 @@ index 5850c3d7b8..e2371f88fd 100644
2436
2436
{
2437
2437
$this
2438
2438
diff --git a/src/Symfony/Component/Console/Command/SignalableCommandInterface.php b/src/Symfony/Component/Console/Command/SignalableCommandInterface.php
2439
- index 4d0876003d..d33732acb6 100644
2439
+ index 7ebffede11..40b301d18f 100644
2440
2440
--- a/src/Symfony/Component/Console/Command/SignalableCommandInterface.php
2441
2441
+++ b/src/Symfony/Component/Console/Command/SignalableCommandInterface.php
2442
- @@ -31 ,4 +31 ,4 @@ interface SignalableCommandInterface
2442
+ @@ -29 ,4 +29 ,4 @@ interface SignalableCommandInterface
2443
2443
* @return int|false The exit code to return or false to continue the normal execution
2444
2444
*/
2445
- - public function handleSignal(int $signal, /* int|false $previousExitCode = 0 */ );
2446
- + public function handleSignal(int $signal, /* int|false $previousExitCode = 0 */ ): int|false;
2445
+ - public function handleSignal(int $signal, int|false $previousExitCode = 0);
2446
+ + public function handleSignal(int $signal, int|false $previousExitCode = 0): int|false;
2447
2447
}
2448
2448
diff --git a/src/Symfony/Component/Console/DependencyInjection/AddConsoleCommandPass.php b/src/Symfony/Component/Console/DependencyInjection/AddConsoleCommandPass.php
2449
2449
index 27705ddb63..1b25473f75 100644
@@ -2528,38 +2528,38 @@ index 433cd41978..02187a7ffc 100644
2528
2528
2529
2529
/**
2530
2530
diff --git a/src/Symfony/Component/Console/Formatter/OutputFormatterStyle.php b/src/Symfony/Component/Console/Formatter/OutputFormatterStyle.php
2531
- index 346a474c61..db3012ced8 100644
2531
+ index f075e881d8..b93a539df1 100644
2532
2532
--- a/src/Symfony/Component/Console/Formatter/OutputFormatterStyle.php
2533
2533
+++ b/src/Symfony/Component/Console/Formatter/OutputFormatterStyle.php
2534
2534
@@ -42,5 +42,5 @@ class OutputFormatterStyle implements OutputFormatterStyleInterface
2535
2535
* @return void
2536
2536
*/
2537
- - public function setForeground(string $color = null )
2538
- + public function setForeground(string $color = null ): void
2537
+ - public function setForeground(? string $color)
2538
+ + public function setForeground(? string $color): void
2539
2539
{
2540
- if (1 > \func_num_args()) {
2541
- @@ -53 ,5 +53 ,5 @@ class OutputFormatterStyle implements OutputFormatterStyleInterface
2540
+ $this->color = new Color($this->foreground = $color ?: '', $this->background, $this->options);
2541
+ @@ -50 ,5 +50 ,5 @@ class OutputFormatterStyle implements OutputFormatterStyleInterface
2542
2542
* @return void
2543
2543
*/
2544
- - public function setBackground(string $color = null )
2545
- + public function setBackground(string $color = null ): void
2544
+ - public function setBackground(? string $color)
2545
+ + public function setBackground(? string $color): void
2546
2546
{
2547
- if (1 > \func_num_args()) {
2548
- @@ -69 ,5 +69 ,5 @@ class OutputFormatterStyle implements OutputFormatterStyleInterface
2547
+ $this->color = new Color($this->foreground, $this->background = $color ?: '', $this->options);
2548
+ @@ -63 ,5 +63 ,5 @@ class OutputFormatterStyle implements OutputFormatterStyleInterface
2549
2549
* @return void
2550
2550
*/
2551
2551
- public function setOption(string $option)
2552
2552
+ public function setOption(string $option): void
2553
2553
{
2554
2554
$this->options[] = $option;
2555
- @@ -78 ,5 +78 ,5 @@ class OutputFormatterStyle implements OutputFormatterStyleInterface
2555
+ @@ -72 ,5 +72 ,5 @@ class OutputFormatterStyle implements OutputFormatterStyleInterface
2556
2556
* @return void
2557
2557
*/
2558
2558
- public function unsetOption(string $option)
2559
2559
+ public function unsetOption(string $option): void
2560
2560
{
2561
2561
$pos = array_search($option, $this->options);
2562
- @@ -91 ,5 +91 ,5 @@ class OutputFormatterStyle implements OutputFormatterStyleInterface
2562
+ @@ -85 ,5 +85 ,5 @@ class OutputFormatterStyle implements OutputFormatterStyleInterface
2563
2563
* @return void
2564
2564
*/
2565
2565
- public function setOptions(array $options)
@@ -2645,31 +2645,31 @@ index eb32bce8fc..57edd56954 100644
2645
2645
{
2646
2646
$options = array_merge([
2647
2647
diff --git a/src/Symfony/Component/Console/Helper/Helper.php b/src/Symfony/Component/Console/Helper/Helper.php
2648
- index 3631b30f69..5e4407a591 100644
2648
+ index c80c1f468f..9578a074bb 100644
2649
2649
--- a/src/Symfony/Component/Console/Helper/Helper.php
2650
2650
+++ b/src/Symfony/Component/Console/Helper/Helper.php
2651
2651
@@ -27,5 +27,5 @@ abstract class Helper implements HelperInterface
2652
2652
* @return void
2653
2653
*/
2654
- - public function setHelperSet(HelperSet $helperSet = null )
2655
- + public function setHelperSet(HelperSet $helperSet = null ): void
2654
+ - public function setHelperSet(? HelperSet $helperSet)
2655
+ + public function setHelperSet(? HelperSet $helperSet): void
2656
2656
{
2657
- if (1 > \func_num_args()) {
2658
- @@ -95 ,5 +95 ,5 @@ abstract class Helper implements HelperInterface
2657
+ $this->helperSet = $helperSet;
2658
+ @@ -92 ,5 +92 ,5 @@ abstract class Helper implements HelperInterface
2659
2659
* @return string
2660
2660
*/
2661
2661
- public static function formatTime(int|float $secs)
2662
2662
+ public static function formatTime(int|float $secs): string
2663
2663
{
2664
2664
static $timeFormats = [
2665
- @@ -127 ,5 +127 ,5 @@ abstract class Helper implements HelperInterface
2665
+ @@ -124 ,5 +124 ,5 @@ abstract class Helper implements HelperInterface
2666
2666
* @return string
2667
2667
*/
2668
2668
- public static function formatMemory(int $memory)
2669
2669
+ public static function formatMemory(int $memory): string
2670
2670
{
2671
2671
if ($memory >= 1024 * 1024 * 1024) {
2672
- @@ -147 ,5 +147 ,5 @@ abstract class Helper implements HelperInterface
2672
+ @@ -144 ,5 +144 ,5 @@ abstract class Helper implements HelperInterface
2673
2673
* @return string
2674
2674
*/
2675
2675
- public static function removeDecoration(OutputFormatterInterface $formatter, ?string $string)
@@ -2904,16 +2904,16 @@ index 0f5617cd17..bdd5dd264f 100644
2904
2904
{
2905
2905
$this->stream = $stream;
2906
2906
diff --git a/src/Symfony/Component/Console/Input/InputArgument.php b/src/Symfony/Component/Console/Input/InputArgument.php
2907
- index 5cb151488d..2dc276a372 100644
2907
+ index fa57f5d0d4..e657b56ad7 100644
2908
2908
--- a/src/Symfony/Component/Console/Input/InputArgument.php
2909
2909
+++ b/src/Symfony/Component/Console/Input/InputArgument.php
2910
2910
@@ -96,5 +96,5 @@ class InputArgument
2911
2911
* @throws LogicException When incorrect default value is given
2912
2912
*/
2913
- - public function setDefault(string|bool|int|float|array $default = null )
2914
- + public function setDefault(string|bool|int|float|array $default = null ): void
2913
+ - public function setDefault(string|bool|int|float|array|null $default)
2914
+ + public function setDefault(string|bool|int|float|array|null $default): void
2915
2915
{
2916
- if (1 > \func_num_args() ) {
2916
+ if ($this->isRequired() && null !== $default ) {
2917
2917
diff --git a/src/Symfony/Component/Console/Input/InputAwareInterface.php b/src/Symfony/Component/Console/Input/InputAwareInterface.php
2918
2918
index 0ad27b4558..f5e544930e 100644
2919
2919
--- a/src/Symfony/Component/Console/Input/InputAwareInterface.php
@@ -3037,16 +3037,16 @@ index aaed5fd01d..e7de9bcdec 100644
3037
3037
+ public function setInteractive(bool $interactive): void;
3038
3038
}
3039
3039
diff --git a/src/Symfony/Component/Console/Input/InputOption.php b/src/Symfony/Component/Console/Input/InputOption.php
3040
- index fdf88dcc27..cf7a71a3c4 100644
3040
+ index c9e8aa82b6..ee7c119cd2 100644
3041
3041
--- a/src/Symfony/Component/Console/Input/InputOption.php
3042
3042
+++ b/src/Symfony/Component/Console/Input/InputOption.php
3043
3043
@@ -182,5 +182,5 @@ class InputOption
3044
3044
* @return void
3045
3045
*/
3046
- - public function setDefault(string|bool|int|float|array $default = null )
3047
- + public function setDefault(string|bool|int|float|array $default = null ): void
3046
+ - public function setDefault(string|bool|int|float|array|null $default)
3047
+ + public function setDefault(string|bool|int|float|array|null $default): void
3048
3048
{
3049
- if (1 > \func_num_args() ) {
3049
+ if (self::VALUE_NONE === (self::VALUE_NONE & $this->mode) && null !== $default ) {
3050
3050
diff --git a/src/Symfony/Component/Console/Input/StreamableInputInterface.php b/src/Symfony/Component/Console/Input/StreamableInputInterface.php
3051
3051
index 4b95fcb11e..b95fab2601 100644
3052
3052
--- a/src/Symfony/Component/Console/Input/StreamableInputInterface.php
@@ -3283,10 +3283,10 @@ index b00445ece8..5e9b1086b0 100644
3283
3283
{
3284
3284
$this->buffer .= $message;
3285
3285
diff --git a/src/Symfony/Component/Console/Question/Question.php b/src/Symfony/Component/Console/Question/Question.php
3286
- index 26896bb531..af97d04ddc 100644
3286
+ index dec0954e79..873b302873 100644
3287
3287
--- a/src/Symfony/Component/Console/Question/Question.php
3288
3288
+++ b/src/Symfony/Component/Console/Question/Question.php
3289
- @@ -270 ,5 +270 ,5 @@ class Question
3289
+ @@ -264 ,5 +264 ,5 @@ class Question
3290
3290
* @return bool
3291
3291
*/
3292
3292
- protected function isAssoc(array $array)
@@ -4684,7 +4684,7 @@ index c1cd9087f0..a9efa77a6d 100644
4684
4684
{
4685
4685
return $this->resolved;
4686
4686
diff --git a/src/Symfony/Component/DependencyInjection/ParameterBag/ParameterBagInterface.php b/src/Symfony/Component/DependencyInjection/ParameterBag/ParameterBagInterface.php
4687
- index 51a662afc2..19e1f18d29 100644
4687
+ index 8c76fe7a8e..b255b0e8ef 100644
4688
4688
--- a/src/Symfony/Component/DependencyInjection/ParameterBag/ParameterBagInterface.php
4689
4689
+++ b/src/Symfony/Component/DependencyInjection/ParameterBag/ParameterBagInterface.php
4690
4690
@@ -29,5 +29,5 @@ interface ParameterBagInterface
0 commit comments