Use imports instead of FQNs

This commit is contained in:
Jan Böhmer 2023-06-11 14:55:06 +02:00
parent f63b6d7207
commit 5629215ce4
179 changed files with 792 additions and 597 deletions

View file

@ -22,6 +22,7 @@ declare(strict_types=1);
namespace App\Tests\Controller;
use Symfony\Bundle\FrameworkBundle\KernelBrowser;
use App\Entity\UserSystem\User;
use App\Repository\UserRepository;
use Doctrine\ORM\EntityManagerInterface;
@ -35,7 +36,7 @@ class RedirectControllerTest extends WebTestCase
{
protected EntityManagerInterface $em;
protected UserRepository $userRepo;
protected \Symfony\Bundle\FrameworkBundle\KernelBrowser $client;
protected KernelBrowser $client;
protected function setUp(): void
{

View file

@ -43,8 +43,8 @@ class ProjectBuildRequestTest extends TestCase
/** @var ProjectBOMEntry */
private ProjectBOMEntry $bom_entry1c;
private \App\Entity\Parts\PartLot $lot1a;
private \App\Entity\Parts\PartLot $lot1b;
private PartLot $lot1a;
private PartLot $lot1b;
private PartLot $lot2;
/** @var Part */

View file

@ -41,6 +41,7 @@ declare(strict_types=1);
namespace App\Tests\Services\LabelSystem\PlaceholderProviders;
use Doctrine\ORM\EntityManager;
use App\Entity\Parts\Category;
use App\Entity\Parts\Footprint;
use App\Entity\Parts\Part;
@ -61,7 +62,7 @@ class PartProviderTest extends WebTestCase
protected Part $target;
/**
* @var \Doctrine\ORM\EntityManager
* @var EntityManager
*/
protected $em;