Closed
Description
I'm using Memcached in a Symfony application together with LazyLoading. This uses https://github.com/Ocramius/ProxyManager to generate stubs like this:
class Memcached_f82f04b extends \Memcached implements \ProxyManager\Proxy\VirtualProxyInterface
{
/**
* @var \Memcached|null wrapped object, if the proxy is initialized
*/
private $valueHolderd5e48 = null;
/**
* @var \Closure|null initializer responsible for generating the wrapped object
*/
private $initializerb9143 = null;
/**
* @var bool[] map of public properties of the parent class
*/
private static $publicProperties198ff = [
];
public function getDelayed(array $keys, $with_cas = null, $value_cb = null)
{
$this->initializerb9143 && ($this->initializerb9143->__invoke($valueHolderd5e48, $this, 'getDelayed', array('keys' => $keys, 'with_cas' => $with_cas, 'value_cb' => $value_cb), $this->initializerb9143) || 1) && $this->valueHolderd5e48 = $valueHolderd5e48;
return $this->valueHolderd5e48->getDelayed($keys, $with_cas, $value_cb);
}
public function getDelayedByKey($server_key, array $keys, $with_cas = null, $value_cb = null)
{
$this->initializerb9143 && ($this->initializerb9143->__invoke($valueHolderd5e48, $this, 'getDelayedByKey', array('server_key' => $server_key, 'keys' => $keys, 'with_cas' => $with_cas, 'value_cb' => $value_cb), $this->initializerb9143) || 1) && $this->valueHolderd5e48 = $valueHolderd5e48;
return $this->valueHolderd5e48->getDelayedByKey($server_key, $keys, $with_cas, $value_cb);
}
Somehow it's not able to correctly read the internals of the Memcached classes as it trips with this error:
PHP Fatal error: Cannot use int as default value for parameter $with_cas of type bool in /home/runner/work/Website/Website/var/cache/test/ContainerDOLs3wx/KernelTestDebugContainer.php on line 122395
Could it be that this has something todo with stubs that are not yet released?
If so, could a new tagged release solve it? 🙏
Metadata
Metadata
Assignees
Labels
No labels