-
-
Notifications
You must be signed in to change notification settings - Fork 108
Open
Description
Describe the bug
ldap_set_option historically accepts null as connection identifier to set the global options, such as log level or PKI locations.
To Reproduce
ldap_set_option(null, \LDAP_OPT_DEBUG_LEVEL, -1) with PHP < 8.1.
Expected behavior
No errors indicated.
Platform and version
Windows 10
VS Code 1.106.3
Intelephense 1.16.2
P.S.
Temporarily fixed by modifying ~/.vscode/extensions/bmewburn.vscode-intelephense-client-1.16.2/node_modules/intelephense/lib/stub/ldap/ldap.php line 1195
- #[PhpVersionAware(['8.1' => 'LDAP\Connection|null'], default: 'resource')] $ldap,
+ #[PhpVersionAware(['8.1' => 'LDAP\Connection|null'], default: '?resource')] $ldap,Metadata
Metadata
Assignees
Labels
No labels