]> granicus.if.org Git - php/commitdiff
Fix class type hints example.
authorSebastian Bergmann <sebastian@php.net>
Fri, 7 Mar 2003 06:29:07 +0000 (06:29 +0000)
committerSebastian Bergmann <sebastian@php.net>
Fri, 7 Mar 2003 06:29:07 +0000 (06:29 +0000)
Zend/ZEND_CHANGES

index 59b51b5ead727684291695f8eb74e03922aef5bc..a983c33f387d8fb00cd5d53fbe2a7a94ffcae0bf 100644 (file)
@@ -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');
           }
         }