Skip to content

Commit 73f2010

Browse files
committed
Fix phpdoc and coding standards
This removes the unused use statements which were not catched by PHP-CS-Fixer because of string occurences. It also fixes some invalid phpdoc (scalar is not recognized as a valid type for instance).
1 parent 90a5d07 commit 73f2010

File tree

4 files changed

+2
-5
lines changed

4 files changed

+2
-5
lines changed

RegistryInterface.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
namespace Symfony\Bridge\Doctrine;
1313

1414
use Doctrine\Common\Persistence\ManagerRegistry as ManagerRegistryInterface;
15-
use Doctrine\ORM\Configuration;
1615
use Doctrine\ORM\EntityManager;
1716

1817
/**

Tests/DependencyInjection/CompilerPass/RegisterEventListenersAndSubscribersPassTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ protected function setUp()
2525
}
2626

2727
/**
28-
* @expectedException InvalidArgumentException
28+
* @expectedException \InvalidArgumentException
2929
*/
3030
public function testExceptionOnAbstractTaggedSubscriber()
3131
{
@@ -41,7 +41,7 @@ public function testExceptionOnAbstractTaggedSubscriber()
4141
}
4242

4343
/**
44-
* @expectedException InvalidArgumentException
44+
* @expectedException \InvalidArgumentException
4545
*/
4646
public function testExceptionOnAbstractTaggedListener()
4747
{

Tests/Form/Type/EntityTypeTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
namespace Symfony\Bridge\Doctrine\Tests\Form\Type;
1313

1414
use Symfony\Bridge\Doctrine\Test\DoctrineTestHelper;
15-
use Symfony\Component\Form\Exception\UnexpectedTypeException;
1615
use Symfony\Component\Form\Test\TypeTestCase;
1716
use Symfony\Bridge\Doctrine\Tests\Fixtures\GroupableEntity;
1817
use Symfony\Bridge\Doctrine\Tests\Fixtures\SingleIntIdEntity;

Tests/Validator/Constraints/UniqueEntityValidatorTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
use Symfony\Bridge\Doctrine\Tests\Fixtures\AssociationEntity;
2323
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
2424
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntityValidator;
25-
use Symfony\Component\Validator\Validator;
2625
use Doctrine\ORM\Tools\SchemaTool;
2726

2827
/**

0 commit comments

Comments
 (0)