1--TEST-- 2Bug #72496 (declare public method with signature incompatible with parent private method should not throw a warning) 3--FILE-- 4<?php 5class Foo 6{ 7 private function getFoo() 8 { 9 return 'Foo'; 10 } 11 12 private function getBar() 13 { 14 return 'Bar'; 15 } 16 17 private function getBaz() 18 { 19 return 'Baz'; 20 } 21} 22 23class Bar extends Foo 24{ 25 public function getFoo($extraArgument) 26 { 27 return $extraArgument; 28 } 29 30 protected function getBar($extraArgument) 31 { 32 return $extraArgument; 33 } 34 35 private function getBaz($extraArgument) 36 { 37 return $extraArgument; 38 } 39} 40 41echo "OK\n"; 42--EXPECT-- 43OK 44