Skip to content

Commit 6afaf00

Browse files
authored
Merge pull request #779 from greg0ire/cleanup-voodoo-incantations
Remove unneeded autoload calls
2 parents 4a8a290 + ca47343 commit 6afaf00

File tree

6 files changed

+0
-22
lines changed

6 files changed

+0
-22
lines changed

src/Form/Element/Proxy.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
use function current;
2222
use function get_class;
2323
use function gettype;
24-
use function interface_exists;
2524
use function is_callable;
2625
use function is_object;
2726
use function is_string;
@@ -591,5 +590,3 @@ protected function loadValueOptions(): void
591590
$this->valueOptions = $options;
592591
}
593592
}
594-
595-
interface_exists(ObjectManager::class);

src/Options/Authentication.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
use Laminas\Stdlib\AbstractOptions;
1313

1414
use function gettype;
15-
use function interface_exists;
1615
use function is_callable;
1716
use function is_string;
1817
use function sprintf;
@@ -266,6 +265,3 @@ public function setStorage($storage): void
266265
$this->storage = $storage;
267266
}
268267
}
269-
270-
interface_exists(ClassMetadata::class);
271-
interface_exists(ObjectRepository::class);

src/Persistence/ObjectManagerAwareInterface.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66

77
use Doctrine\Persistence\ObjectManager;
88

9-
use function interface_exists;
10-
119
// phpcs:disable SlevomatCodingStandard.Classes.SuperfluousInterfaceNaming
1210
interface ObjectManagerAwareInterface
1311
{
@@ -23,5 +21,3 @@ public function setObjectManager(ObjectManager $objectManager): void;
2321
*/
2422
public function getObjectManager(): ObjectManager;
2523
}
26-
27-
interface_exists(ObjectManager::class);

src/Persistence/ProvidesObjectManager.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66

77
use Doctrine\Persistence\ObjectManager;
88

9-
use function interface_exists;
10-
119
/**
1210
* Trait to provide object manager to a form (only works from PHP 5.4)
1311
*/
@@ -32,5 +30,3 @@ public function getObjectManager(): ObjectManager
3230
return $this->objectManager;
3331
}
3432
}
35-
36-
interface_exists(ObjectManager::class);

src/Service/DriverFactory.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
use function class_exists;
1919
use function get_class;
20-
use function interface_exists;
2120
use function is_array;
2221
use function is_subclass_of;
2322
use function sprintf;
@@ -147,5 +146,3 @@ protected function createDriver(ContainerInterface $container, Driver $options):
147146
return $driver;
148147
}
149148
}
150-
151-
interface_exists(MappingDriver::class);

src/Validator/Service/AbstractValidatorFactory.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
use Laminas\ServiceManager\ServiceLocatorInterface;
1313
use Laminas\Stdlib\ArrayUtils;
1414

15-
use function interface_exists;
1615
use function is_string;
1716
use function sprintf;
1817

@@ -129,6 +128,3 @@ public function setCreationOptions(array $options): void
129128
$this->creationOptions = $options;
130129
}
131130
}
132-
133-
interface_exists(ObjectManager::class);
134-
interface_exists(ObjectRepository::class);

0 commit comments

Comments
 (0)