You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The interactive shell also features tab completion for functions, constants, class names, variables, static method calls and class constants.
Only function, class and method names seems to be completing when hitting the TAB key.
Also, the completion is not contextualized: after $, it should be only variable names (not function and class names), and after -> it should be only property and method names of the current object.
The following command to run the interactive shell:
PHP 8.4.3 (cli) (built: Jan 15 2025 01:03:17) (NTS)
Copyright (c) The PHP Group
Built by Homebrew
Zend Engine v4.4.3, Copyright (c) Zend Technologies
with Xdebug v3.4.1, Copyright (c) 2002-2025, by Derick Rethans
with Zend OPcache v8.4.3, Copyright (c), by Zend Technologies
PHP Version
PHP 8.4.3
Operating System
Mac 15.3 (24D60)
The text was updated successfully, but these errors were encountered:
Thanks for checking. I tried by disabling Xdebug, Opcache and MongoDB extension, and I still have the same unexpected behavior.
I tried on Mac with docker docker run --rm -it php:8.4-cli php -a, the variable completion is working correctly. But the object properties and methods are not completed (this might be a different topic).
Description
According to the documentation:
Only function, class and method names seems to be completing when hitting the TAB key.
Also, the completion is not contextualized: after
$
, it should be only variable names (not function and class names), and after->
it should be only property and method names of the current object.The following command to run the interactive shell:
Completion of variable name
The following shell code:
Resulted in this output:
But I expected this output instead:
Completion of property name
The following shell code:
Resulted in this output:
But I expected this output instead:
PHP version
PHP Version
PHP 8.4.3
Operating System
Mac 15.3 (24D60)
The text was updated successfully, but these errors were encountered: