diff --git a/specs/misc/first-class-callables.php b/specs/misc/first-class-callables.php index 4b893196..cdf66ecd 100644 --- a/specs/misc/first-class-callables.php +++ b/specs/misc/first-class-callables.php @@ -52,6 +52,9 @@ new A(...); new \X\A(...); + $this->foo(...); + $this?->foo(...); + #[A(...)] function b() {} @@ -68,6 +71,8 @@ function b() {} \Humbug\X\A::foo(...); new A(...); new \Humbug\X\A(...); + $this->foo(...); + $this?->foo(...); #[\X\A(...)] function b() {