Closed Ocramius closed 9 years ago
Apologies for the branch name: I'm sleepy.
This PR introduces following behavior (providing implementation for #11)
class Bar {} class Foo { /** @param $foo \Bar[] */ public function doFoo(array $foo) {} }
This will work:
$foo = new Foo(); $foo->doFoo([]); $foo->doFoo([new Bar, new Bar]);
This will fail:
$foo = new Foo(); $foo->doFoo([123, 456]); // crash
Tests and SoC are still to be addressed, this is just a PoC.
@malukenho please review :D
:beers:
Apologies for the branch name: I'm sleepy.
This PR introduces following behavior (providing implementation for #11)
This will work:
This will fail:
Tests and SoC are still to be addressed, this is just a PoC.
@malukenho please review :D
TODOs: