Skip to content

PHP 7: Declaration mismatch (::get, ::getMulti) #205

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
kakserpom opened this issue Dec 12, 2015 · 2 comments
Closed

PHP 7: Declaration mismatch (::get, ::getMulti) #205

kakserpom opened this issue Dec 12, 2015 · 2 comments

Comments

@kakserpom
Copy link

php7 -r 'class MemcachedLog extends Memcached {public function get( $key, $cache_cb = null, &$cas_token = null, &$udf_flags = null ) {}}'
PHP Warning: Declaration of MemcachedLog::get($key, $cache_cb = NULL, &$cas_token = NULL, &$udf_flags = NULL) should be compatible with Memcached::get($key, $cache_cb = NULL, &$cas_token = NULL, &$udf_flags = NULL) in Command line code on line 1

@SjonHortensius
Copy link

This is already reported as #126

PHP7 increases the importance of this issue, as it has become a lot harder to ignore this warning

@mkoppanen
Copy link
Member

Fixed in php7 branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants