Repository: doctrine/data-fixtures (language: php)

Issue:
ORMExecutor->execute expects diffrented  class than Loader->getFixures() returns
I get the following error from latest versions:
```
  Line   tests/Functional/FunctionalTestCase.php                                                                                                                      
 ------ ------------------------------------------------------------------------------------------------------------------------------------------------------------- 
  91     Parameter #1 $fixtures of method Doctrine\Common\DataFixtures\Executor\ORMExecutor::execute() expects array<Doctrine\Common\DataFixtures\FixtureInterface>,  
         array<class-string<Doctrine\Common\DataFixtures\OrderedFixtureInterface>|int, Doctrine\Common\DataFixtures\OrderedFixtureInterface> given.    
```

I think it could be resolved if `OrderedFixtureInterface` extends from `FixtureInterface`


Discussion / hints:
`OrderedFixtureInterface` doesn't extend `FixtureInterface`, which probably means something like `OrderedFixtureInterface&FixtureInterface` should be used somewhere.
Hard to tell where without the source code of `tests/Functional/FunctionalTestCase.php`, of course.
@greg0ire this is what the class looks like:
```php
xxx

    protected function refreshFixtures(): void
    {
        $loader = new Doctrine\Common\DataFixtures\Loader();
        $fixture = new CustomFixture();
        $fixture->setContainer($this->getKernelBrowser()->getContainer());
        $loader->addFixture($fixture);
        $purger = new Doctrine\Common\DataFixtures\Purger\ORMPurger();
        $executor = new Doctrine\Common\DataFixtures\Executor\ORMExecutor($this->getEntityManager(), $purger);
        $executor->execute($loader->getFixtures());
    }
```
Ok, so the issue is with https://github.com/doctrine/data-fixtures/blob/1a4232c15143ca3c127812d19b23a7961c41eeed/lib/Doctrine/Common/DataFixtures/Loader.php#L184

Do you feel up to making it more precise?

Kind of makes me wonder why `OrderedFixtureInterface` doesn't extend `FixtureInterface` in the first place though :thinking: 
> Ok, so the issue is with
> 
> https://github.com/doctrine/data-fixtures/blob/1a4232c15143ca3c127812d19b23a7961c41eeed/lib/Doctrine/Common/DataFixtures/Loader.php#L184
> 
> Do you feel up to making it more precise?
> 
> Kind of makes me wonder why `OrderedFixtureInterface` doesn't extend `FixtureInterface` in the first place though thinking


Yes i think its in the `Loader.php`, i haven't debugged the issue much i could try to change the return types but i also wonder why that `OrderedFixtureInterface` doesn't extend from `FixtureInterface` haha i dont know who introduced it maybe they know best.

I saw docs updates where done in https://github.com/doctrine/data-fixtures/pull/389 but they made it consistent with the property `$fixtures` docs

> i dont know who introduced it maybe they know best

If only there was a way for us to know that, like some kind of code history tool :thinking: 

Trolling aside it was introduced more than 10 years ago in #5 , so… long shot, but @l3pp4rd , super long shot, but maybe you have some input you can provide on this?
Haha fair, i didn't look that fair back ;p

Fix patch:
diff --git a/lib/Doctrine/Common/DataFixtures/Loader.php b/lib/Doctrine/Common/DataFixtures/Loader.php
index 3918ec26..9ae3aa8b 100644
--- a/lib/Doctrine/Common/DataFixtures/Loader.php
+++ b/lib/Doctrine/Common/DataFixtures/Loader.php
@@ -47,7 +47,7 @@ class Loader
     /**
      * Array of ordered fixture object instances.
      *
-     * @psalm-var array<class-string<OrderedFixtureInterface>, OrderedFixtureInterface>|list<OrderedFixtureInterface>
+     * @psalm-var array<class-string<FixtureInterface>|int, FixtureInterface>
      */
     private $orderedFixtures = [];
 
@@ -181,7 +181,7 @@ public function addFixture(FixtureInterface $fixture)
     /**
      * Returns the array of data fixtures to execute.
      *
-     * @psalm-return array<class-string<OrderedFixtureInterface>|int, OrderedFixtureInterface>
+     * @psalm-return array<class-string<FixtureInterface>|int, FixtureInterface>
      */
     public function getFixtures()
     {
diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon
index 9f45270d..b0b443c3 100644
--- a/phpstan-baseline.neon
+++ b/phpstan-baseline.neon
@@ -25,11 +25,6 @@ parameters:
 			count: 1
 			path: lib/Doctrine/Common/DataFixtures/Loader.php
 
-		-
-			message: "#^Property Doctrine\\\\Common\\\\DataFixtures\\\\Loader\\:\\:\\$orderedFixtures \\(array\\<class\\-string\\<Doctrine\\\\Common\\\\DataFixtures\\\\OrderedFixtureInterface\\>\\|int, Doctrine\\\\Common\\\\DataFixtures\\\\OrderedFixtureInterface\\>\\) does not accept array\\<class\\-string\\<Doctrine\\\\Common\\\\DataFixtures\\\\FixtureInterface\\>, Doctrine\\\\Common\\\\DataFixtures\\\\FixtureInterface\\>\\.$#"
-			count: 2
-			path: lib/Doctrine/Common/DataFixtures/Loader.php
-
 		-
 			message: "#^Call to an undefined method Doctrine\\\\Persistence\\\\ObjectManager\\:\\:getReference\\(\\)\\.$#"
 			count: 2


Test patch: