@@ -43,7 +43,7 @@ |
||
| 43 | 43 | |
| 44 | 44 | ( |
| 45 | 45 | /** |
| 46 | - * @param mixed $rdmMapping |
|
| 46 | + * @param string $rdmMapping |
|
| 47 | 47 | */ |
| 48 | 48 | function (&$rdmMapping) use ($mappingFile): void { |
| 49 | 49 | /** @psalm-suppress UnresolvableInclude */ |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | |
| 44 | 44 | $builder->addModelTransformer(new CallbackTransformer( |
| 45 | 45 | /** |
| 46 | - * @param object $service |
|
| 46 | + * @param FormBuilderInterface $service |
|
| 47 | 47 | */ |
| 48 | 48 | function ($service) use ($container, $options): ?string { |
| 49 | 49 | /** @var ?string $serviceId */ |
@@ -13,7 +13,6 @@ |
||
| 13 | 13 | use PHPUnit\Framework\TestCase; |
| 14 | 14 | use Addiks\RDMBundle\Tests\Hydration\EntityExample; |
| 15 | 15 | use Addiks\RDMBundle\Mapping\Annotation\Service; |
| 16 | -use ReflectionProperty; |
|
| 17 | 16 | use Addiks\RDMBundle\Mapping\Drivers\MappingDriverChain; |
| 18 | 17 | use Addiks\RDMBundle\Mapping\Drivers\MappingDriverInterface; |
| 19 | 18 | use Addiks\RDMBundle\Mapping\EntityMapping; |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | } |
| 70 | 70 | |
| 71 | 71 | /** |
| 72 | - * @param object $entity |
|
| 72 | + * @param \Addiks\RDMBundle\Tests\Hydration\EntityExample $entity |
|
| 73 | 73 | */ |
| 74 | 74 | public function loadDBALDataForEntity($entity, EntityManagerInterface $entityManager): array |
| 75 | 75 | { |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | } |
| 161 | 161 | |
| 162 | 162 | /** |
| 163 | - * @param object $entity |
|
| 163 | + * @param \Addiks\RDMBundle\Tests\Hydration\EntityExample $entity |
|
| 164 | 164 | */ |
| 165 | 165 | public function storeDBALDataForEntity($entity, EntityManagerInterface $entityManager): void |
| 166 | 166 | { |
@@ -197,7 +197,7 @@ discard block |
||
| 197 | 197 | } |
| 198 | 198 | |
| 199 | 199 | /** |
| 200 | - * @param object $entity |
|
| 200 | + * @param \Addiks\RDMBundle\Tests\Hydration\EntityExample $entity |
|
| 201 | 201 | */ |
| 202 | 202 | public function removeDBALDataForEntity($entity, EntityManagerInterface $entityManager): void |
| 203 | 203 | { |
@@ -24,10 +24,8 @@ |
||
| 24 | 24 | use Doctrine\ORM\Query\Expr; |
| 25 | 25 | use Doctrine\DBAL\Driver\Statement; |
| 26 | 26 | use PDO; |
| 27 | -use Addiks\RDMBundle\Mapping\MappingInterface; |
|
| 28 | 27 | use Addiks\RDMBundle\Hydration\HydrationContext; |
| 29 | 28 | use Webmozart\Assert\Assert; |
| 30 | -use ErrorException; |
|
| 31 | 29 | |
| 32 | 30 | /** |
| 33 | 31 | * A very simple loader that just executes one simple select statement for every entity to load the data for. |
@@ -59,6 +59,9 @@ |
||
| 59 | 59 | return [$this->scalarValue, $this->lorem, $this->dolor]; |
| 60 | 60 | } |
| 61 | 61 | |
| 62 | + /** |
|
| 63 | + * @param string $amet |
|
| 64 | + */ |
|
| 62 | 65 | public function setAmet($amet) |
| 63 | 66 | { |
| 64 | 67 | $this->amet = $amet; |
@@ -13,17 +13,11 @@ |
||
| 13 | 13 | use PHPUnit\Framework\TestCase; |
| 14 | 14 | use Addiks\RDMBundle\Hydration\EntityHydrator; |
| 15 | 15 | use Addiks\RDMBundle\Mapping\Drivers\MappingDriverInterface; |
| 16 | -use Addiks\RDMBundle\Mapping\Annotation\Service; |
|
| 17 | 16 | use Addiks\RDMBundle\Tests\Hydration\ServiceExample; |
| 18 | 17 | use Addiks\RDMBundle\Tests\Hydration\EntityExample; |
| 19 | -use ErrorException; |
|
| 20 | -use Addiks\RDMBundle\Mapping\ServiceMapping; |
|
| 21 | 18 | use Addiks\RDMBundle\Mapping\EntityMapping; |
| 22 | -use Addiks\RDMBundle\ValueResolver\ValueResolverInterface; |
|
| 23 | -use Addiks\RDMBundle\Exception\FailedRDMAssertionExceptionInterface; |
|
| 24 | 19 | use Addiks\RDMBundle\DataLoader\DataLoaderInterface; |
| 25 | 20 | use Doctrine\ORM\EntityManagerInterface; |
| 26 | -use Addiks\RDMBundle\Mapping\EntityMappingInterface; |
|
| 27 | 21 | use Addiks\RDMBundle\Mapping\MappingInterface; |
| 28 | 22 | use Addiks\RDMBundle\Hydration\HydrationContextInterface; |
| 29 | 23 | use Symfony\Component\DependencyInjection\ContainerInterface; |
@@ -20,9 +20,7 @@ |
||
| 20 | 20 | use Addiks\RDMBundle\Tests\Hydration\ServiceExample; |
| 21 | 21 | use Addiks\RDMBundle\Tests\ValueObjectExample; |
| 22 | 22 | use Symfony\Component\DependencyInjection\ContainerInterface; |
| 23 | -use Addiks\RDMBundle\Mapping\EntityMappingInterface; |
|
| 24 | 23 | use Addiks\RDMBundle\Mapping\ServiceMapping; |
| 25 | -use Addiks\RDMBundle\Hydration\HydrationContext; |
|
| 26 | 24 | use Addiks\RDMBundle\Hydration\HydrationContextInterface; |
| 27 | 25 | |
| 28 | 26 | final class CachedMappingDriverTest extends TestCase |
@@ -344,7 +344,7 @@ |
||
| 344 | 344 | if (!is_null($actualValue) && !$actualValue instanceof $this->className) { |
| 345 | 345 | throw FailedRDMAssertionException::expectedInstanceOf( |
| 346 | 346 | $this->className, |
| 347 | - is_object($actualValue) ?get_class($actualValue) :gettype($actualValue), |
|
| 347 | + is_object($actualValue) ?get_class($actualValue) : gettype($actualValue), |
|
| 348 | 348 | $this->origin |
| 349 | 349 | ); |
| 350 | 350 | } |
@@ -11,8 +11,6 @@ |
||
| 11 | 11 | namespace Addiks\RDMBundle\Tests\Mapping\DriverFactories; |
| 12 | 12 | |
| 13 | 13 | use PHPUnit\Framework\TestCase; |
| 14 | -use Addiks\RDMBundle\Mapping\DriverFactories\MappingDriverFactoryInterface; |
|
| 15 | -use Addiks\RDMBundle\Mapping\Drivers\MappingDriverInterface; |
|
| 16 | 14 | use Addiks\RDMBundle\Mapping\DriverFactories\MappingStaticPHPDriverFactory; |
| 17 | 15 | use Addiks\RDMBundle\Mapping\Drivers\MappingStaticPHPDriver; |
| 18 | 16 | use Doctrine\ORM\Mapping\Driver\StaticPHPDriver; |