Skip to content

Commit 389ecb8

Browse files
committed
Common exception
1 parent 9119b68 commit 389ecb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Type/Doctrine/ObjectMetadataResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function __construct(?string $objectManagerLoader, ?string $repositoryCla
3838
private function getObjectManager(string $objectManagerLoader)
3939
{
4040
if (! file_exists($objectManagerLoader) && ! is_readable($objectManagerLoader)) {
41-
throw new RuntimeException('Object manager could not be loaded');
41+
throw new \PHPStan\ShouldNotHappenException('Object manager could not be loaded');
4242
}
4343

4444
return require $objectManagerLoader;

0 commit comments

Comments
 (0)