@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | /** |
92 | 92 | * Register events |
93 | 93 | * |
94 | - * @return array |
|
94 | + * @return string[] |
|
95 | 95 | */ |
96 | 96 | public function getSubscribedEvents() |
97 | 97 | { |
@@ -317,7 +317,7 @@ discard block |
||
317 | 317 | /** |
318 | 318 | * Create default annotation reader for extensions |
319 | 319 | * |
320 | - * @return Common\Annotations\AnnotationReader |
|
320 | + * @return Common\Annotations\CachedReader |
|
321 | 321 | */ |
322 | 322 | private function getDefaultAnnotationReader() |
323 | 323 | { |
@@ -335,7 +335,7 @@ discard block |
||
335 | 335 | /** |
336 | 336 | * Checks if $field type is valid |
337 | 337 | * |
338 | - * @param object $meta |
|
338 | + * @param ORM\Mapping\ClassMetadata $meta |
|
339 | 339 | * @param string $field |
340 | 340 | * |
341 | 341 | * @return boolean |
@@ -510,7 +510,7 @@ discard block |
||
510 | 510 | |
511 | 511 | } else if ($metadata->hasAssociation($field)) { |
512 | 512 | // association |
513 | - if ($metadata->isSingleValuedAssociation($field) === FALSE && $this->configuration->useLazyAssociation() === FALSE) { |
|
513 | + if ($metadata->isSingleValuedAssociation($field) === FALSE && $this->configuration->useLazyAssociation() === FALSE) { |
|
514 | 514 | throw new Exceptions\InvalidMappingException("Association - [{$field}] is not valid, it must be a one-to-many relation or a string field - {$metadata->getName()}"); |
515 | 515 | } |
516 | 516 | } |
@@ -630,7 +630,7 @@ discard block |
||
630 | 630 | $user = $this->getUser(); |
631 | 631 | |
632 | 632 | if ($classMetadata->hasAssociation($field)) { |
633 | - if ($user !== NULL && ! is_object($user)) { |
|
633 | + if ($user !== NULL && !is_object($user)) { |
|
634 | 634 | throw new Exceptions\InvalidArgumentException("Blame is reference, user must be an object"); |
635 | 635 | } |
636 | 636 |