Simplifying sourcecode by using type hintsat 2007-02-26 in RFCs, Announcements by friebe (0 comments) With the implementation of RFC #0100 (IllegalArgumentException for Type hints) I started migrating code which was manually checking arguments being instances of a certain class to type hints:For example, this piece of sourcecode from the xml.Node class: public function addChild($child) {was changed to: public function addChild(Node $child) {which will result in the same behaviour. |
|