When running Symfony application with LeaseWeb/LswMemcacheBundle, below error:
Declaration of Lsw\MemcacheBundle\Cache\LoggingMemcache::get() should be compatible with Memcached::get($key, $cache_cb = NULL, &$cas_token = NULL, &$udf_flags = NULL)
It is cause by php-memcached 2.2.x gives runtime notices and should be avoided!
For those who used php-memcached 2.2.x, may uninstall it and install with php-memcached 2.1.0.
Using php pecl, uninstall memcached:
/Applications/MAMP/bin/php/php5.6.7/bin/pecl uninstall memcached
Install memcached-2.1.0:
/Applications/MAMP/bin/php/php5.6.7/bin/pecl i memcached-2.1.0
Reference: LeaseWeb/LswMemcacheBundle
(Check for requirements section)
What do you think?