Skip to content

Commit

Permalink
Merge pull request #129 from gmponos/patch-1
Browse files Browse the repository at this point in the history
Return exception on Psr17FactoryDiscovery
  • Loading branch information
dbu authored Jan 3, 2019
2 parents 4e4542a + 64a0a41 commit be7a6a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Psr17FactoryDiscovery.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ final class Psr17FactoryDiscovery extends ClassDiscovery
{
private static function createException($type, Exception $e)
{
new \Http\Discovery\Exception\NotFoundException(
return new \Http\Discovery\Exception\NotFoundException(
'No psr-17 '.$type.' found. Install a package from this list: https://packagist.org/providers/psr/http-factory-implementation',
0,
$e
Expand Down

0 comments on commit be7a6a0

Please sign in to comment.