Skip to content

Commit d3274c7

Browse files
committed
Fix Config tests for branch 6.0
1 parent f413340 commit d3274c7

File tree

12 files changed

+40
-32
lines changed

12 files changed

+40
-32
lines changed

Tests/Builder/Fixtures/AddToList/Symfony/Config/AddToList/Messenger/ReceivingConfig.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class ReceivingConfig
2020
* @param ParamConfigurator|int $value
2121
* @return $this
2222
*/
23-
public function priority($value): self
23+
public function priority($value): static
2424
{
2525
$this->priority = $value;
2626

@@ -32,7 +32,7 @@ public function priority($value): self
3232
* @param ParamConfigurator|mixed $value
3333
* @return $this
3434
*/
35-
public function color($value): self
35+
public function color($value): static
3636
{
3737
$this->color = $value;
3838

Tests/Builder/Fixtures/AddToList/Symfony/Config/AddToList/Messenger/RoutingConfig.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ class RoutingConfig
1515
private $senders;
1616

1717
/**
18-
* @param ParamConfigurator|list<mixed|ParamConfigurator> $value
18+
* @param ParamConfigurator|list<ParamConfigurator|mixed> $value
19+
*
1920
* @return $this
2021
*/
21-
public function senders($value): self
22+
public function senders(ParamConfigurator|array $value): static
2223
{
2324
$this->senders = $value;
2425

Tests/Builder/Fixtures/AddToList/Symfony/Config/AddToList/TranslatorConfig.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,21 @@ class TranslatorConfig
1616
private $sources;
1717

1818
/**
19-
* @param ParamConfigurator|list<mixed|ParamConfigurator> $value
19+
* @param ParamConfigurator|list<ParamConfigurator|mixed> $value
20+
*
2021
* @return $this
2122
*/
22-
public function fallbacks($value): self
23+
public function fallbacks(ParamConfigurator|array $value): static
2324
{
2425
$this->fallbacks = $value;
2526

2627
return $this;
2728
}
2829

2930
/**
30-
* @param ParamConfigurator|mixed $value
3131
* @return $this
3232
*/
33-
public function source(string $source_class, $value): self
33+
public function source(string $source_class, mixed $value): static
3434
{
3535
$this->sources[$source_class] = $value;
3636

Tests/Builder/Fixtures/ArrayExtraKeys/Symfony/Config/ArrayExtraKeys/BarConfig.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class BarConfig
2020
* @param ParamConfigurator|mixed $value
2121
* @return $this
2222
*/
23-
public function corge($value): self
23+
public function corge($value): static
2424
{
2525
$this->corge = $value;
2626

@@ -32,7 +32,7 @@ public function corge($value): self
3232
* @param ParamConfigurator|mixed $value
3333
* @return $this
3434
*/
35-
public function grault($value): self
35+
public function grault($value): static
3636
{
3737
$this->grault = $value;
3838

@@ -71,9 +71,10 @@ public function toArray(): array
7171

7272
/**
7373
* @param ParamConfigurator|mixed $value
74+
*
7475
* @return $this
7576
*/
76-
public function set(string $key, $value): self
77+
public function set(string $key, mixed $value): static
7778
{
7879
if (null === $value) {
7980
unset($this->_extraKeys[$key]);

Tests/Builder/Fixtures/ArrayExtraKeys/Symfony/Config/ArrayExtraKeys/BazConfig.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,10 @@ public function toArray(): array
2929

3030
/**
3131
* @param ParamConfigurator|mixed $value
32+
*
3233
* @return $this
3334
*/
34-
public function set(string $key, $value): self
35+
public function set(string $key, mixed $value): static
3536
{
3637
if (null === $value) {
3738
unset($this->_extraKeys[$key]);

Tests/Builder/Fixtures/ArrayExtraKeys/Symfony/Config/ArrayExtraKeys/FooConfig.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class FooConfig
2020
* @param ParamConfigurator|mixed $value
2121
* @return $this
2222
*/
23-
public function baz($value): self
23+
public function baz($value): static
2424
{
2525
$this->baz = $value;
2626

@@ -32,7 +32,7 @@ public function baz($value): self
3232
* @param ParamConfigurator|mixed $value
3333
* @return $this
3434
*/
35-
public function qux($value): self
35+
public function qux($value): static
3636
{
3737
$this->qux = $value;
3838

@@ -71,9 +71,10 @@ public function toArray(): array
7171

7272
/**
7373
* @param ParamConfigurator|mixed $value
74+
*
7475
* @return $this
7576
*/
76-
public function set(string $key, $value): self
77+
public function set(string $key, mixed $value): static
7778
{
7879
if (null === $value) {
7980
unset($this->_extraKeys[$key]);

Tests/Builder/Fixtures/NodeInitialValues/Symfony/Config/NodeInitialValues/Messenger/TransportsConfig.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class TransportsConfig
2121
* @param ParamConfigurator|mixed $value
2222
* @return $this
2323
*/
24-
public function dsn($value): self
24+
public function dsn($value): static
2525
{
2626
$this->dsn = $value;
2727

@@ -33,18 +33,19 @@ public function dsn($value): self
3333
* @param ParamConfigurator|mixed $value
3434
* @return $this
3535
*/
36-
public function serializer($value): self
36+
public function serializer($value): static
3737
{
3838
$this->serializer = $value;
3939

4040
return $this;
4141
}
4242

4343
/**
44-
* @param ParamConfigurator|list<mixed|ParamConfigurator> $value
44+
* @param ParamConfigurator|list<ParamConfigurator|mixed> $value
45+
*
4546
* @return $this
4647
*/
47-
public function options($value): self
48+
public function options(ParamConfigurator|array $value): static
4849
{
4950
$this->options = $value;
5051

Tests/Builder/Fixtures/NodeInitialValues/Symfony/Config/NodeInitialValues/SomeCleverNameConfig.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class SomeCleverNameConfig
2020
* @param ParamConfigurator|mixed $value
2121
* @return $this
2222
*/
23-
public function first($value): self
23+
public function first($value): static
2424
{
2525
$this->first = $value;
2626

@@ -32,7 +32,7 @@ public function first($value): self
3232
* @param ParamConfigurator|mixed $value
3333
* @return $this
3434
*/
35-
public function second($value): self
35+
public function second($value): static
3636
{
3737
$this->second = $value;
3838

Tests/Builder/Fixtures/Placeholders/Symfony/Config/PlaceholdersConfig.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class PlaceholdersConfig implements \Symfony\Component\Config\Builder\ConfigBuil
2121
* @param ParamConfigurator|bool $value
2222
* @return $this
2323
*/
24-
public function enabled($value): self
24+
public function enabled($value): static
2525
{
2626
$this->enabled = $value;
2727

@@ -33,18 +33,19 @@ public function enabled($value): self
3333
* @param ParamConfigurator|float $value
3434
* @return $this
3535
*/
36-
public function favoriteFloat($value): self
36+
public function favoriteFloat($value): static
3737
{
3838
$this->favoriteFloat = $value;
3939

4040
return $this;
4141
}
4242

4343
/**
44-
* @param ParamConfigurator|list<int|ParamConfigurator> $value
44+
* @param ParamConfigurator|list<ParamConfigurator|int> $value
45+
*
4546
* @return $this
4647
*/
47-
public function goodIntegers($value): self
48+
public function goodIntegers(ParamConfigurator|array $value): static
4849
{
4950
$this->goodIntegers = $value;
5051

Tests/Builder/Fixtures/PrimitiveTypes/Symfony/Config/PrimitiveTypesConfig.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class PrimitiveTypesConfig implements \Symfony\Component\Config\Builder\ConfigBu
2323
* @param ParamConfigurator|bool $value
2424
* @return $this
2525
*/
26-
public function booleanNode($value): self
26+
public function booleanNode($value): static
2727
{
2828
$this->booleanNode = $value;
2929

@@ -35,7 +35,7 @@ public function booleanNode($value): self
3535
* @param ParamConfigurator|'foo'|'bar'|'baz' $value
3636
* @return $this
3737
*/
38-
public function enumNode($value): self
38+
public function enumNode($value): static
3939
{
4040
$this->enumNode = $value;
4141

@@ -47,7 +47,7 @@ public function enumNode($value): self
4747
* @param ParamConfigurator|float $value
4848
* @return $this
4949
*/
50-
public function floatNode($value): self
50+
public function floatNode($value): static
5151
{
5252
$this->floatNode = $value;
5353

@@ -59,7 +59,7 @@ public function floatNode($value): self
5959
* @param ParamConfigurator|int $value
6060
* @return $this
6161
*/
62-
public function integerNode($value): self
62+
public function integerNode($value): static
6363
{
6464
$this->integerNode = $value;
6565

@@ -71,7 +71,7 @@ public function integerNode($value): self
7171
* @param ParamConfigurator|mixed $value
7272
* @return $this
7373
*/
74-
public function scalarNode($value): self
74+
public function scalarNode($value): static
7575
{
7676
$this->scalarNode = $value;
7777

0 commit comments

Comments
 (0)