rfc:stack-frame-class

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:stack-frame-class [2020/07/09 06:48] – added info on getTrace arguments and new methods and properties brzuchalrfc:stack-frame-class [2020/07/21 05:12] – $file and $line nullability brzuchal
Line 1: Line 1:
 ====== PHP RFC: StackFrame class ====== ====== PHP RFC: StackFrame class ======
-  * Version: 0.9+  * Version: 1.1
   * Date: 2020-07-07   * Date: 2020-07-07
   * Author: Michał Marcin Brzuchalski, <brzuchal@php.net>   * Author: Michał Marcin Brzuchalski, <brzuchal@php.net>
Line 28: Line 28:
 final class StackFrame implements ArrayAccess final class StackFrame implements ArrayAccess
 { {
-    public readonly string $file;+    public ?string $file;
          
-    public readonly int $line;+    public ?int $line;
          
-    public readonly ?string $function;+    public ?string $function;
          
-    public readonly ?string $class;+    public ?string $class;
          
-    public readonly ?object $object;+    public ?object $object;
  
-    public readonly ?string $object_class;+    public ?string $object_class;
  
-    public readonly ?\Closure $closure;+    public ?\Closure $closure;
          
-    public readonly array $args;+    public array $args;
          
     public static function getTrace(int $options = DEBUG_BACKTRACE_PROVIDE_OBJECT, int $limit = 0): array {}     public static function getTrace(int $options = DEBUG_BACKTRACE_PROVIDE_OBJECT, int $limit = 0): array {}
  
-    public function getFile(): string {}+    public function getFile(): ?string {}
  
-    public function getLine(): int {}+    public function getLine(): ?int {}
  
     public function getFunction(): ?string {}     public function getFunction(): ?string {}
rfc/stack-frame-class.txt · Last modified: 2020/08/04 08:00 by brzuchal