|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2020-03-11 17:52 UTC] nikic@php.net
 
-Package: PHP Language Specification
+Package: *General Issues
  [2020-03-11 22:06 UTC] rowan dot collins at gmail dot com
  [2020-03-11 23:12 UTC] requinix@php.net
 
-Status: Open
+Status: Suspended
  [2020-03-12 09:10 UTC] txigreman at hotmail dot com
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 10:00:02 2025 UTC | 
Description: ------------ Hi, Actually, you can can create a Closure with any of this: $closure = function() { return $this->method(); } $closure = fn() => $this->method(); $closure = \Closure::fromCallable([$this, 'method']); I think it would be greate to have a simpler way to create a Closure. I suggest to add a simpler variant: $closure = $this->method::function; $closure = Class::staticMethod::function; $closure = trim::function; It mimics the functionality from MyClass:class and $object::class, so the syntax is user-friendly. Additionally, it does not uses a new keywork, so I think it has no backwards compatibility breaks (or so I hope).