File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515
1616use ApiPlatform \Symfony \Bundle \Command \Upgrade \UpgradeApiFilterParameter ;
1717use ApiPlatform \Symfony \Bundle \Command \Upgrade \UpgradeApiFilterVisitor ;
18- use ApiPlatform \Tests \Fixtures \TestBundle \ Entity \ Issue7126 \StringBackedEnum ;
18+ use ApiPlatform \Symfony \ Tests \Fixtures \Enum \StringBackedEnum ;
1919use PhpParser \NodeTraverser ;
2020use PhpParser \NodeVisitor \CloningVisitor ;
2121use PhpParser \ParserFactory ;
@@ -125,7 +125,7 @@ class ConvertedEnum
125125
126126use ApiPlatform\Doctrine\Orm\Filter\ExactFilter;
127127use ApiPlatform\Metadata\QueryParameter;
128- use ApiPlatform\Tests\Fixtures\TestBundle\Entity\Issue7126 \StringBackedEnum;
128+ use ApiPlatform\Symfony\ Tests\Fixtures\Enum \StringBackedEnum;
129129use Symfony\Component\TypeInfo\TypeIdentifier;
130130use Symfony\Component\TypeInfo\Type\BackedEnumType;
131131use Symfony\Component\TypeInfo\Type\BuiltinType;
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ /*
4+ * This file is part of the API Platform project.
5+ *
6+ * (c) Kévin Dunglas <dunglas@gmail.com>
7+ *
8+ * For the full copyright and license information, please view the LICENSE
9+ * file that was distributed with this source code.
10+ */
11+
12+ declare (strict_types=1 );
13+
14+ namespace ApiPlatform \Symfony \Tests \Fixtures \Enum ;
15+
16+ enum StringBackedEnum: string
17+ {
18+ case One = 'one ' ;
19+ case Two = 'two ' ;
20+ }
You can’t perform that action at this time.
0 commit comments