From: Sebastian Bergmann Date: Fri, 7 Mar 2003 06:29:07 +0000 (+0000) Subject: Fix class type hints example. X-Git-Tag: RELEASE_0_5~567 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=55826fbeb543001a6ef0a75fa8398e26fadd24ac;p=php Fix class type hints example. --- diff --git a/Zend/ZEND_CHANGES b/Zend/ZEND_CHANGES index 59b51b5ead..a983c33f38 100644 --- a/Zend/ZEND_CHANGES +++ b/Zend/ZEND_CHANGES @@ -191,15 +191,15 @@ Changes in the Zend Engine 2.0 This means that - function foo(Class $object) { + function foo(ClassName $object) { // ... } is equivalent to - function foo(Class $object) { - if (!($object instanceof Class)) { - die('Argument 1 must be an instance of Class'); + function foo($object) { + if (!($object instanceof ClassName)) { + die('Argument 1 must be an instance of ClassName'); } }