1<?php 2class A { 3 public function test(Foo $foo) {} 4} 5class B extends A { 6 public function test(Bar $foo) {} 7} 8?> 9