mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Add first-class callables
Support acquiring a Closure to a callable using the syntax func(...), $obj->method(...), etc. This is essentially a shortcut for Closure::fromCallable(). RFC: https://wiki.php.net/rfc/first_class_callable_syntax Closes GH-7019. Co-Authored-By: Nikita Popov <nikita.ppv@gmail.com>
This commit is contained in:
parent
42cb5b5fa8
commit
d0b09a7be4
40 changed files with 1078 additions and 515 deletions
|
@ -285,7 +285,8 @@ END_EXTERN_C()
|
|||
#define ZEND_CHECK_UNDEF_ARGS 199
|
||||
#define ZEND_FETCH_GLOBALS 200
|
||||
#define ZEND_VERIFY_NEVER_TYPE 201
|
||||
#define ZEND_CALLABLE_CONVERT 202
|
||||
|
||||
#define ZEND_VM_LAST_OPCODE 201
|
||||
#define ZEND_VM_LAST_OPCODE 202
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue