Skip to content

Commit be7a6a0

Browse files
authored
Merge pull request #129 from gmponos/patch-1
Return exception on Psr17FactoryDiscovery
2 parents 4e4542a + 64a0a41 commit be7a6a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Psr17FactoryDiscovery.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ final class Psr17FactoryDiscovery extends ClassDiscovery
1919
{
2020
private static function createException($type, Exception $e)
2121
{
22-
new \Http\Discovery\Exception\NotFoundException(
22+
return new \Http\Discovery\Exception\NotFoundException(
2323
'No psr-17 '.$type.' found. Install a package from this list: https://packagist.org/providers/psr/http-factory-implementation',
2424
0,
2525
$e

0 commit comments

Comments
 (0)