rfc:get_debug_type
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
rfc:get_debug_type [2020/02/29 23:11] – nikic | rfc:get_debug_type [2020/04/29 19:42] – fix unclosed vote ajf | ||
---|---|---|---|
Line 3: | Line 3: | ||
* Date: 2020-02-15 | * Date: 2020-02-15 | ||
* Author: Mark Randall, marandall@php.net | * Author: Mark Randall, marandall@php.net | ||
- | * Status: | + | * Status: |
* First Published at: https:// | * First Published at: https:// | ||
Line 14: | Line 14: | ||
$bar = $arr[' | $bar = $arr[' | ||
if (!($bar instanceof Foo)) { | if (!($bar instanceof Foo)) { | ||
+ | // this shows the most simple of patterns, to get the real type an assoc array | ||
+ | // must be present to convert long-form " | ||
throw new TypeError(' | throw new TypeError(' | ||
+ | } | ||
+ | |||
+ | // would become | ||
+ | if (!($bar instanceof Foo)) { | ||
+ | throw new TypeError(' | ||
} | } | ||
Line 43: | Line 50: | ||
PHP 8.0 | PHP 8.0 | ||
- | ===== Proposed | + | ===== Voting ===== |
- | Yes / no vote on adding the new function. | + | |
- | + | ||
- | Yes / no on resource names be resolved - Would appear as resource(resource_type). | + | |
- | (Optional) A vote on the name, if there is not a clear majority consensus during RFC discussion. | + | <doodle title=" |
+ | * Yes | ||
+ | * No | ||
+ | </ | ||
rfc/get_debug_type.txt · Last modified: 2020/08/01 23:41 by carusogabriel