Skip to content

Commit a0e4bc8

Browse files
Merge branch '6.1' into 6.2
* 6.1: [SecurityBundle] Fix using same handler for multiple authenticators [DependencyInjection] Fix dump order of inlined deps [VarExporter] Fix exporting enums [HttpClient] Let curl handle content-length headers [Intl] Fix tests
2 parents be8072b + 69f78fe commit a0e4bc8

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

Dumper/PhpDumper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ private function collectCircularReferences(string $sourceId, array $edges, array
476476
$loop = [];
477477
}
478478
}
479-
$this->addCircularReferences($first, $loop, true);
479+
$this->addCircularReferences($first, $loop, $loopByConstructor);
480480
break;
481481
}
482482
}

Tests/Fixtures/includes/autowiring_classes.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@ class Foo
1515
{
1616
/**
1717
* @required
18-
* @return static
1918
*/
20-
public function cloneFoo()
19+
public function cloneFoo(): static
2120
{
2221
return clone $this;
2322
}

Tests/Fixtures/php/services_almost_circular_private.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -419,17 +419,16 @@ protected function getMonologInline_LoggerService()
419419
*/
420420
protected function getPAService()
421421
{
422-
$a = new \stdClass();
423-
424-
$b = ($this->privates['pC'] ?? $this->getPCService());
422+
$a = ($this->privates['pC'] ?? $this->getPCService());
425423

426424
if (isset($this->services['pA'])) {
427425
return $this->services['pA'];
428426
}
427+
$b = new \stdClass();
429428

430-
$this->services['pA'] = $instance = new \stdClass($a, $b);
429+
$this->services['pA'] = $instance = new \stdClass($b, $a);
431430

432-
$a->d = ($this->privates['pD'] ?? $this->getPDService());
431+
$b->d = ($this->privates['pD'] ?? $this->getPDService());
433432

434433
return $instance;
435434
}

0 commit comments

Comments
 (0)