rfc:splweaktypehintingwithautoboxing

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
rfc:splweaktypehintingwithautoboxing [2010/05/31 15:51] tyraelrfc:splweaktypehintingwithautoboxing [2010/05/31 18:14] tyrael
Line 36: Line 36:
 class foo implements WeakTypeHinting{ class foo implements WeakTypeHinting{
   public function bar(SplInt $baz){   public function bar(SplInt $baz){
-   return $baz++; +    return ++$baz
- }+  }
 } }
  
Line 49: Line 49:
 </code> </code>
  
-===== Some crazy thoughts =====+===== Notes =====
 If an object implements ArrayAccess spl interface, it could be handled as an array(eg. if you hinted array, you can pass ArrayObject). If an object implements ArrayAccess spl interface, it could be handled as an array(eg. if you hinted array, you can pass ArrayObject).
rfc/splweaktypehintingwithautoboxing.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1