rfc:stack-frame-class
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
rfc:stack-frame-class [2020/07/21 04:46] – removed immutability on properties brzuchal | rfc:stack-frame-class [2020/08/04 08:00] (current) – change status to declined brzuchal | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== PHP RFC: StackFrame class ====== | ====== PHP RFC: StackFrame class ====== | ||
- | * Version: 1.1 | + | * Version: 1.2 |
* Date: 2020-07-07 | * Date: 2020-07-07 | ||
* Author: Michał Marcin Brzuchalski, | * Author: Michał Marcin Brzuchalski, | ||
- | * Status: | + | * Status: |
* Target Version: PHP 8.0 | * Target Version: PHP 8.0 | ||
* First Published at: http:// | * First Published at: http:// | ||
Line 18: | Line 18: | ||
==== StackFrame class ==== | ==== StackFrame class ==== | ||
- | '' | + | '' |
There are additional properties and methods which expose additional information: | There are additional properties and methods which expose additional information: | ||
- | * property '' | + | * property '' |
- | * property '' | + | * property '' |
<code php> | <code php> | ||
final class StackFrame implements ArrayAccess | final class StackFrame implements ArrayAccess | ||
{ | { | ||
- | public string $file; | + | public |
| | ||
- | public int $line; | + | public |
| | ||
public ?string $function; | public ?string $function; | ||
Line 38: | Line 38: | ||
public ?object $object; | public ?object $object; | ||
- | public ?string $object_class; | + | public ?string $objectClass; |
+ | |||
+ | public ?string $type; | ||
public ?\Closure $closure; | public ?\Closure $closure; | ||
| | ||
- | public array $args; | + | public array $args = []; |
| | ||
public static function getTrace(int $options = DEBUG_BACKTRACE_PROVIDE_OBJECT, | public static function getTrace(int $options = DEBUG_BACKTRACE_PROVIDE_OBJECT, | ||
- | |||
- | public function getFile(): string {} | ||
- | |||
- | public function getLine(): int {} | ||
- | |||
- | public function getFunction(): | ||
- | |||
- | public function getClass(): ?string {} | ||
- | |||
- | public function getObject(): | ||
- | | ||
- | public function getObjectClass(): | ||
- | |||
- | public function getClosure(): | ||
- | |||
- | public function getType(): ?string {} | ||
- | |||
- | public function getArgs(): array {} | ||
} | } | ||
</ | </ | ||
Line 114: | Line 98: | ||
===== Proposed Voting Choices ===== | ===== Proposed Voting Choices ===== | ||
- | As this is a language | + | As this is a change |
The vote will be a simple Yes/No for '' | The vote will be a simple Yes/No for '' | ||
+ | |||
+ | ===== Vote ===== | ||
+ | Voting opened 2020-07-21 and closes 2020-08-04. | ||
+ | |||
+ | <doodle title=" | ||
+ | * Yes | ||
+ | * No | ||
+ | </ | ||
+ | |||
+ | '''' | ||
+ | |||
+ | <doodle title=" | ||
+ | * Yes | ||
+ | * No | ||
+ | </ | ||
===== Implementation ===== | ===== Implementation ===== | ||
* [[https:// | * [[https:// |
rfc/stack-frame-class.1595306773.txt.gz · Last modified: 2020/07/21 04:46 by brzuchal