Completed
Pull Request — 3.x (#1078)
by Vincent
01:28
created
src/Model/ModelManager.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,6 +60,7 @@  discard block
 block discarded – undo
60 60
 
61 61
     /**
62 62
      * NEXT_MAJOR: Make $propertyAccessor mandatory.
63
+     * @param \Symfony\Component\PropertyAccess\PropertyAccessor $propertyAccessor
63 64
      */
64 65
     public function __construct(ManagerRegistry $registry, ?PropertyAccessorInterface $propertyAccessor = null)
65 66
     {
@@ -661,7 +662,7 @@  discard block
 block discarded – undo
661 662
      *
662 663
      * @param string $property
663 664
      *
664
-     * @return mixed
665
+     * @return string
665 666
      */
666 667
     protected function camelize($property)
667 668
     {
Please login to merge, or discard this patch.
tests/Model/ModelManagerTest.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -944,6 +944,9 @@
 block discarded – undo
944 944
         $this->assertNull($this->modelManager->getNormalizedIdentifier(null));
945 945
     }
946 946
 
947
+    /**
948
+     * @param string $class
949
+     */
947 950
     private function getMetadata($class, $isVersioned)
948 951
     {
949 952
         $metadata = new ClassMetadata($class);
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,6 @@
 block discarded – undo
59 59
 use Sonata\DoctrineORMAdminBundle\Tests\Fixtures\Entity\UuidEntity;
60 60
 use Sonata\DoctrineORMAdminBundle\Tests\Fixtures\Entity\VersionedEntity;
61 61
 use Sonata\DoctrineORMAdminBundle\Tests\Fixtures\Util\NonIntegerIdentifierTestClass;
62
-use Symfony\Bridge\Doctrine\RegistryInterface;
63 62
 use Symfony\Component\PropertyAccess\PropertyAccess;
64 63
 
65 64
 class ModelManagerTest extends TestCase
Please login to merge, or discard this patch.