From d98186e2c48ffb6b2ca15706f500fa36528b9ebe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Paris?= Date: Thu, 18 Jan 2024 21:19:28 +0100 Subject: [PATCH] Make Doctrine\Tests\ORM\Internal\Node autoloadable It is used in several tests. --- tests/Doctrine/Tests/ORM/Internal/Node.php | 16 ++++++++++++++++ .../Tests/ORM/Internal/TopologicalSortTest.php | 11 ----------- 2 files changed, 16 insertions(+), 11 deletions(-) create mode 100644 tests/Doctrine/Tests/ORM/Internal/Node.php diff --git a/tests/Doctrine/Tests/ORM/Internal/Node.php b/tests/Doctrine/Tests/ORM/Internal/Node.php new file mode 100644 index 00000000000..d53954a2ea2 --- /dev/null +++ b/tests/Doctrine/Tests/ORM/Internal/Node.php @@ -0,0 +1,16 @@ +name = $name; + } +} diff --git a/tests/Doctrine/Tests/ORM/Internal/TopologicalSortTest.php b/tests/Doctrine/Tests/ORM/Internal/TopologicalSortTest.php index d0dd9178c15..e1a93b684ef 100644 --- a/tests/Doctrine/Tests/ORM/Internal/TopologicalSortTest.php +++ b/tests/Doctrine/Tests/ORM/Internal/TopologicalSortTest.php @@ -287,14 +287,3 @@ private function computeResult(): array }, array_values($this->topologicalSort->sort())); } } - -class Node -{ - /** @var string */ - public $name; - - public function __construct(string $name) - { - $this->name = $name; - } -}