Skip to content

Commit

Permalink
Merge pull request #32 from nonanerz/check_pheanstalk_interface
Browse files Browse the repository at this point in the history
check if PheanstalkInterface exists
  • Loading branch information
mcfedr committed Aug 17, 2020
2 parents 2d3ca93 + 13eeb1c commit cff39d0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
use Symfony\Component\DependencyInjection\Reference;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;

if (!interface_exists(\Pheanstalk\Contract\PheanstalkInterface::class)) {
if (!interface_exists(\Pheanstalk\Contract\PheanstalkInterface::class) && interface_exists(\Pheanstalk\PheanstalkInterface::class)) {
class_alias(\Pheanstalk\PheanstalkInterface::class, \Pheanstalk\Contract\PheanstalkInterface::class);
}

Expand Down

0 comments on commit cff39d0

Please sign in to comment.