Skip to content

Commit 5841f88

Browse files
committed
Fix build for PHP < 7
1 parent a1d8452 commit 5841f88

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

spec/HttpClientDiscoverySpec.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ function it_throw_exception(DiscoveryStrategy $strategy) {
5252

5353
private function psr18IsInUse()
5454
{
55+
if (PHP_MAJOR_VERSION < 7) {
56+
return false;
57+
}
58+
5559
$reflection = new \ReflectionMethod(HttpClient::class, 'sendRequest');
5660

5761
return $reflection->hasReturnType();

0 commit comments

Comments
 (0)