From d5b084479c74c33e054612fc6e7f969b6bab359e Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Thu, 17 Dec 2020 17:20:08 +0000 Subject: [PATCH 1/3] Fixed ParseError in stub file --- php_memcached.stub.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php_memcached.stub.php b/php_memcached.stub.php index e44ff4a..e813ae7 100644 --- a/php_memcached.stub.php +++ b/php_memcached.stub.php @@ -17,7 +17,7 @@ public function get(string $key, callable $cache_cb=NULL, int $get_flags=0): mix public function getByKey(string $server_key, string $key, callable $cache_cb=NULL, int $get_flags=0): mixed {} public function getMulti(array $keys, int $get_flags=0): false|array {} public function getMultiByKey(string $server_key, array $keys, int $get_flags=0): false|array {} - public function getDelayed(array $keys, bool $with_cas=0, callable $value_cb=NULL): bool {} + public function getDelayed(array $keys, bool $with_cas=FALSE, callable $value_cb=NULL): bool {} public function getDelayedByKey(string $server_key, array $keys, bool $with_cas=0, callable $value_cb=NULL): bool {} public function fetch(): false|array {} public function fetchAll(): false|array {} From 015d7c6705a2b0b26d539939cf792b4ef99c431a Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Thu, 17 Dec 2020 17:22:33 +0000 Subject: [PATCH 2/3] Update php_memcached.stub.php --- php_memcached.stub.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php_memcached.stub.php b/php_memcached.stub.php index e813ae7..836dff7 100644 --- a/php_memcached.stub.php +++ b/php_memcached.stub.php @@ -18,7 +18,7 @@ public function getByKey(string $server_key, string $key, callable $cache_cb=NUL public function getMulti(array $keys, int $get_flags=0): false|array {} public function getMultiByKey(string $server_key, array $keys, int $get_flags=0): false|array {} public function getDelayed(array $keys, bool $with_cas=FALSE, callable $value_cb=NULL): bool {} - public function getDelayedByKey(string $server_key, array $keys, bool $with_cas=0, callable $value_cb=NULL): bool {} + public function getDelayedByKey(string $server_key, array $keys, bool $with_cas=FALSE, callable $value_cb=NULL): bool {} public function fetch(): false|array {} public function fetchAll(): false|array {} From fafaf7fc6533cc5d48d784d0d2661338ab81b4c0 Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Thu, 17 Dec 2020 17:24:51 +0000 Subject: [PATCH 3/3] Match PHP 7 version of the file --- php_memcached.stub.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/php_memcached.stub.php b/php_memcached.stub.php index 836dff7..6b84c5b 100644 --- a/php_memcached.stub.php +++ b/php_memcached.stub.php @@ -17,8 +17,8 @@ public function get(string $key, callable $cache_cb=NULL, int $get_flags=0): mix public function getByKey(string $server_key, string $key, callable $cache_cb=NULL, int $get_flags=0): mixed {} public function getMulti(array $keys, int $get_flags=0): false|array {} public function getMultiByKey(string $server_key, array $keys, int $get_flags=0): false|array {} - public function getDelayed(array $keys, bool $with_cas=FALSE, callable $value_cb=NULL): bool {} - public function getDelayedByKey(string $server_key, array $keys, bool $with_cas=FALSE, callable $value_cb=NULL): bool {} + public function getDelayed(array $keys, bool $with_cas=NULL, callable $value_cb=NULL): bool {} + public function getDelayedByKey(string $server_key, array $keys, bool $with_cas=NULL, callable $value_cb=NULL): bool {} public function fetch(): false|array {} public function fetchAll(): false|array {}