N°6934 - Symfony 6.4 - upgrade Symfony bundles to 6.4 (#580)

* Update Symfony lib to version ~6.4.0
* Update code missing return type
* Add an iTop general configuration entry to store application secret (Symfony mandatory parameter)
* Use dependency injection in ExceptionListener & UserProvider classes
This commit is contained in:
bdalsass
2023-12-05 13:56:56 +01:00
committed by GitHub
parent 863ab4560c
commit 27ce51ab07
1392 changed files with 44869 additions and 27799 deletions

View File

@@ -29,7 +29,7 @@ class ServiceReferenceGraph
/**
* @var ServiceReferenceGraphNode[]
*/
private $nodes = [];
private array $nodes = [];
public function hasNode(string $id): bool
{
@@ -63,7 +63,7 @@ class ServiceReferenceGraph
/**
* Clears all nodes.
*/
public function clear()
public function clear(): void
{
foreach ($this->nodes as $node) {
$node->clear();
@@ -74,7 +74,7 @@ class ServiceReferenceGraph
/**
* Connects 2 nodes together in the Graph.
*/
public function connect(?string $sourceId, $sourceValue, ?string $destId, $destValue = null, Reference $reference = null, bool $lazy = false, bool $weak = false, bool $byConstructor = false)
public function connect(?string $sourceId, mixed $sourceValue, ?string $destId, mixed $destValue = null, Reference $reference = null, bool $lazy = false, bool $weak = false, bool $byConstructor = false): void
{
if (null === $sourceId || null === $destId) {
return;
@@ -88,7 +88,7 @@ class ServiceReferenceGraph
$destNode->addInEdge($edge);
}
private function createNode(string $id, $value): ServiceReferenceGraphNode
private function createNode(string $id, mixed $value): ServiceReferenceGraphNode
{
if (isset($this->nodes[$id]) && $this->nodes[$id]->getValue() === $value) {
return $this->nodes[$id];