Skip to content

Commit 104b0ec

Browse files
committed
Leverage str_starts_with(), str_ends_with() and str_contains()
1 parent ca04880 commit 104b0ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Transport/BeanstalkdTransportFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ public function createTransport(string $dsn, array $options, SerializerInterface
2929

3030
public function supports(string $dsn, array $options): bool
3131
{
32-
return 0 === strpos($dsn, 'beanstalkd://');
32+
return str_starts_with($dsn, 'beanstalkd://');
3333
}
3434
}

0 commit comments

Comments
 (0)