Skip to content

Commit

Permalink
Add test case to illustrate how to properly match against "any object"
Browse files Browse the repository at this point in the history
  • Loading branch information
ralflang committed Nov 4, 2023
1 parent 0ec802e commit e944564
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/ParameterDeriverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,12 @@ public function test_derive_invokable() : void

$this->assertEquals(Foo::class, $type);
}

public function test_derive_any_invokable() : void
{
$type = $this->deriver->getParameterType(new InvokableAnyObject());

$this->assertEquals('object', $type);

}
}

0 comments on commit e944564

Please sign in to comment.