rfc:to-array

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
rfc:to-array [2020/02/11 13:02]
stevenwadejr Update language to specify behavior with respect to strict typing
rfc:to-array [2020/02/11 13:57] (current)
stevenwadejr Bump the version number now that it's under discussion and some feedback has been addressed
Line 1: Line 1:
 ====== PHP RFC: __toArray() ====== ====== PHP RFC: __toArray() ======
-  * Version: 0.1+  * Version: 1.1
   * Date: 2019-08-28   * Date: 2019-08-28
   * Author: Steven Wade, stevenwadejr@gmail.com   * Author: Steven Wade, stevenwadejr@gmail.com
Line 126: Line 126:
 } }
  
-foo($person); // Throws an error: "Return value of bar() must be of the type array, object returned"+foo($person); // Throws an error: "Argument 1 passed to foo() must be of the type array, object given"
 </code> </code>
  
rfc/to-array.1581426151.txt.gz · Last modified: 2020/02/11 13:02 by stevenwadejr