Skip to content

Commit

Permalink
#167 - Remove code specifically designed to skip tests in PHP <= 5.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocramius committed Dec 14, 2014
1 parent ade7b1f commit f0a57e2
Showing 1 changed file with 4 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ public function getProxyMethods()
{
$selfHintParam = new ClassWithSelfHint();

$data = [
return [
[
BaseClass::class,
new BaseClass(),
Expand Down Expand Up @@ -343,20 +343,14 @@ public function getProxyMethods()
[],
'publicMethodDefault'
],
];

if (PHP_VERSION_ID >= 50401) {
// PHP < 5.4.1 misbehaves, throwing strict standards, see https://bugs.php.net/bug.php?id=60573
$data[] = [
[
ClassWithSelfHint::class,
new ClassWithSelfHint(),
'selfHintMethod',
['parameter' => $selfHintParam],
$selfHintParam
];
}

return $data;
],
];
}

/**
Expand Down

0 comments on commit f0a57e2

Please sign in to comment.