-
Notifications
You must be signed in to change notification settings - Fork 326
Incorrect PHP reflection type for Memcached::cas $cas_token #523
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
According to the code, the |
remicollet
added a commit
that referenced
this issue
Nov 14, 2022
Closed
m6w6
added a commit
that referenced
this issue
Sep 26, 2024
- Add #515 option to locally enforce payload size limit - Add #539 zstd support - Add #540 compression_level option - Mark password as a sensitive param for PHP 8.2 - Fix Windows PHP 8 compatibility - Fix #518 Windows msgpack support - Fix #522 signed integer overflow - Fix #523 incorrect PHP reflection type for Memcached::cas $cas_token - Fix #546 don't check key automatically, unless client-side verify_key is enabled - Fix #555 incompatible pointer types (32-bit)
m6w6
added a commit
that referenced
this issue
Oct 4, 2024
- Add #515 option to locally enforce payload size limit - Add #539 zstd support - Add #540 compression_level option - Mark password as a sensitive param for PHP 8.2 - Fix Windows PHP 8 compatibility - Fix #518 Windows msgpack support - Fix #522 signed integer overflow - Fix #523 incorrect PHP reflection type for Memcached::cas $cas_token - Fix #546 don't check key automatically, unless client-side verify_key is enabled
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
The first argument (
$cas_token
) toMemcached::cas
is afloat
according to the documentation.However when using Reflection to list the parameters it determines that the
$cas_token
is of typestring
.PHP script:
results in
Dockerfile:
Where does this inconsistency come from and can it be resolved?
A possible explanation is https://github.com/php-memcached-dev/php-memcached/blob/master/php_memcached.stub.php#L34
This stub file type hints the
$cas_token
parameter as being astring
.The text was updated successfully, but these errors were encountered: