Hi!

I recently noticed this code:

<?php
error_reporting(E_ALL | E_STRICT);

class ObjParent {
        public function set($param2 = ''){ }
}

class ObjChild extends ObjParent {
        public function set(){ }
}

produces a E_STRICT warning. I don't really see a point in it - there's no problem whatsoever with child function ignoring some arguments from parent call. Anybody could explain why this check is there?
--
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/
(408)454-6900 ext. 227

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to