Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class A {
- public function __construct(AA $aa) {}
- }
- class B extends A {
- public function __construct(AB $ab) {}
- }
- class AA {}
- class AB extends AA {}
- $a = new B(new AB());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement