Hi!
In Child $foo is redefined without a getter-method. This breaks the
How it's not "in Child the get method is inherited from Mother"? But suppose it is as you say. Yes, in this particular case it would be detected - however, it is not the code you brought in the last example, where the actual code - not method presence - was changed. Summarily, LSP can not be *enforced* by language means. The language can only give support for some limited subset of cases. PHP's get/set handlers allow you to do the same as your property syntax and more, albeit with different syntax.
-- Stanislav Malyshev, Zend Software Architect [EMAIL PROTECTED] http://www.zend.com/ (408)253-8829 MSN: [EMAIL PROTECTED] -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php