Skip to content

Commit

Permalink
Corrected type annotations in tests missing type-hints overall
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocramius authored and pedro-stanaka committed Jan 6, 2020
1 parent 6aed593 commit 51df513
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ public function testWillInterceptAccessToPropertiesViaFriendClassAccess(

$proxy->setMethodPrefixInterceptor(
'__get',
static function ($proxy, $instance, $method, $params, & $returnEarly) use ($listener) : void {
static function (object $proxy, object $instance, string $method, array $params, bool & $returnEarly) use ($listener) : void {
$listener->__invoke($proxy, $instance, $method, $params, $returnEarly);
}
);
Expand Down Expand Up @@ -543,7 +543,7 @@ public function testWillInterceptAccessToPropertiesViaFriendClassAccessEvenIfDeS

$proxy->setMethodPrefixInterceptor(
'__get',
static function ($proxy, $instance, $method, $params, & $returnEarly) use ($listener) : void {
static function (object $proxy, object $instance, string $method, array $params, bool & $returnEarly) use ($listener) : void {
$listener->__invoke($proxy, $instance, $method, $params, $returnEarly);
}
);
Expand Down Expand Up @@ -576,7 +576,7 @@ public function testWillInterceptAccessToPropertiesViaFriendClassAccessEvenIfClo

$proxy->setMethodPrefixInterceptor(
'__get',
static function ($proxy, $instance, $method, $params, & $returnEarly) use ($listener) : void {
static function (object $proxy, object $instance, string $method, array $params, bool & $returnEarly) use ($listener) : void {
$listener->__invoke($proxy, $instance, $method, $params, $returnEarly);
}
);
Expand Down

0 comments on commit 51df513

Please sign in to comment.