-
Notifications
You must be signed in to change notification settings - Fork 324
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #523 Incorrect PHP reflection type for Memcached::cas $cas_token
- Loading branch information
1 parent
aa4868d
commit d91c958
Showing
3 changed files
with
12 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,8 +31,14 @@ public function touchByKey(string $server_key, string $key, int $expiration=0): | |
public function setMulti(array $items, int $expiration=0): bool {} | ||
public function setMultiByKey(string $server_key, array $items, int $expiration=0): bool {} | ||
|
||
public function cas(string $cas_token, string $key, mixed $value, int $expiration=0): bool {} | ||
public function casByKey(string $cas_token, string $server_key, string $key, mixed $value, int $expiration=0): bool {} | ||
/** | ||
* @param string|int|float $cas_token | ||
*/ | ||
public function cas($cas_token, string $key, mixed $value, int $expiration=0): bool {} | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
remicollet
Author
Collaborator
|
||
/** | ||
* @param string|int|float $cas_token | ||
*/ | ||
public function casByKey($cas_token, string $server_key, string $key, mixed $value, int $expiration=0): bool {} | ||
public function add(string $key, mixed $value, int $expiration=0): bool {} | ||
public function addByKey(string $server_key, string $key, mixed $value, int $expiration=0): bool {} | ||
public function append(string $key, string $value): ?bool {} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Why not
mixed $cas_token
?