@@ -41,6 +41,7 @@ discard block |
||
41 | 41 | * (The same object may occur in multiple different locations in an object graph.) |
42 | 42 | * |
43 | 43 | * @param mixed $value |
44 | + * @return void |
|
44 | 45 | */ |
45 | 46 | public function registerValue(string $id, $value): void; |
46 | 47 | |
@@ -70,6 +71,7 @@ discard block |
||
70 | 71 | |
71 | 72 | /** |
72 | 73 | * @param object|string|null $value |
74 | + * @return void |
|
73 | 75 | */ |
74 | 76 | public function pushOnObjectHydrationStack($value): void; |
75 | 77 |
@@ -14,7 +14,6 @@ |
||
14 | 14 | use Psr\Cache\CacheItemInterface; |
15 | 15 | use Addiks\RDMBundle\Mapping\Drivers\MappingDriverInterface; |
16 | 16 | use Addiks\RDMBundle\Mapping\EntityMappingInterface; |
17 | -use Addiks\RDMBundle\Mapping\MappingInterface; |
|
18 | 17 | use Webmozart\Assert\Assert; |
19 | 18 | use Symfony\Component\DependencyInjection\ContainerInterface; |
20 | 19 |
@@ -779,6 +779,9 @@ |
||
779 | 779 | return is_object($attributeNode); |
780 | 780 | } |
781 | 781 | |
782 | + /** |
|
783 | + * @param string $default |
|
784 | + */ |
|
782 | 785 | private function readAttributeValue(DOMNode $node, string $attributeName, ?string $default = null): ?string |
783 | 786 | { |
784 | 787 | /** @var DOMNamedNodeMap $nodeAttributes */ |
@@ -37,7 +37,6 @@ |
||
37 | 37 | use Symfony\Component\HttpKernel\KernelInterface; |
38 | 38 | use Symfony\Component\DependencyInjection\ContainerInterface; |
39 | 39 | use ErrorException; |
40 | -use DOMElement; |
|
41 | 40 | use Webmozart\Assert\Assert; |
42 | 41 | |
43 | 42 | final class MappingXmlDriver implements MappingDriverInterface |
@@ -124,7 +124,7 @@ |
||
124 | 124 | throw new InvalidMappingException(sprintf( |
125 | 125 | "Missing referenced orm file '%s'%s!", |
126 | 126 | $mappingFile, |
127 | - is_string($parentMappingFile) ?sprintf(", referenced in file '%s'", $parentMappingFile) :'' |
|
127 | + is_string($parentMappingFile) ?sprintf(", referenced in file '%s'", $parentMappingFile) : '' |
|
128 | 128 | )); |
129 | 129 | } |
130 | 130 |
@@ -13,13 +13,10 @@ |
||
13 | 13 | use Addiks\RDMBundle\Mapping\MappingInterface; |
14 | 14 | use Addiks\RDMBundle\Mapping\EntityMappingInterface; |
15 | 15 | use Doctrine\DBAL\Schema\Column; |
16 | -use Addiks\RDMBundle\Mapping\ObjectMapping; |
|
17 | 16 | use Webmozart\Assert\Assert; |
18 | 17 | use Addiks\RDMBundle\Hydration\HydrationContextInterface; |
19 | 18 | use Symfony\Component\DependencyInjection\ContainerInterface; |
20 | -use Doctrine\ORM\EntityManagerInterface; |
|
21 | 19 | use ReflectionClass; |
22 | -use Addiks\RDMBundle\Hydration\HydrationContext; |
|
23 | 20 | use ErrorException; |
24 | 21 | use ReflectionProperty; |
25 | 22 | use ReflectionObject; |
@@ -71,6 +71,7 @@ discard block |
||
71 | 71 | * @param mixed $actualValue |
72 | 72 | * |
73 | 73 | * @throws FailedRDMAssertionExceptionInterface |
74 | + * @return void |
|
74 | 75 | */ |
75 | 76 | public function assertValue( |
76 | 77 | HydrationContextInterface $context, |
@@ -84,6 +85,7 @@ discard block |
||
84 | 85 | * |
85 | 86 | * This method gets called directly after unserializing a mapping-object when loading it from cache. |
86 | 87 | * It allows the mapping-objects to re-fill themself with other objects that may not be able to get serialized. |
88 | + * @return void |
|
87 | 89 | */ |
88 | 90 | public function wakeUpMapping(ContainerInterface $container): void; |
89 | 91 |
@@ -138,7 +138,7 @@ |
||
138 | 138 | } |
139 | 139 | |
140 | 140 | if (!empty($calleeDescription)) { |
141 | - $calleeDescription .= $this->isStaticCall ?'::' :'->'; |
|
141 | + $calleeDescription .= $this->isStaticCall ? '::' : '->'; |
|
142 | 142 | } |
143 | 143 | |
144 | 144 | throw new ORMException(sprintf( |