mirror of
https://github.com/yiisoft/yii2.git
synced 2025-12-19 07:07:58 +08:00
Fixes #12055: Changed boolean to bool and integer to int in phpdoc
This commit is contained in:
committed by
Alexander Makarov
parent
940f7c7cd4
commit
4aa935e69e
@@ -31,7 +31,7 @@ class XCache extends Cache
|
||||
* may return false while exists returns true.
|
||||
* @param mixed $key a key identifying the cached value. This can be a simple string or
|
||||
* a complex data structure consisting of factors representing the key.
|
||||
* @return boolean true if a value exists in cache, false if the value is not in the cache or expired.
|
||||
* @return bool true if a value exists in cache, false if the value is not in the cache or expired.
|
||||
*/
|
||||
public function exists($key)
|
||||
{
|
||||
@@ -58,8 +58,8 @@ class XCache extends Cache
|
||||
* @param string $key the key identifying the value to be cached
|
||||
* @param mixed $value the value to be cached. Most often it's a string. If you have disabled [[serializer]],
|
||||
* it could be something else.
|
||||
* @param integer $duration the number of seconds in which the cached value will expire. 0 means never expire.
|
||||
* @return boolean true if the value is successfully stored into cache, false otherwise
|
||||
* @param int $duration the number of seconds in which the cached value will expire. 0 means never expire.
|
||||
* @return bool true if the value is successfully stored into cache, false otherwise
|
||||
*/
|
||||
protected function setValue($key, $value, $duration)
|
||||
{
|
||||
@@ -73,8 +73,8 @@ class XCache extends Cache
|
||||
* @param string $key the key identifying the value to be cached
|
||||
* @param mixed $value the value to be cached. Most often it's a string. If you have disabled [[serializer]],
|
||||
* it could be something else.
|
||||
* @param integer $duration the number of seconds in which the cached value will expire. 0 means never expire.
|
||||
* @return boolean true if the value is successfully stored into cache, false otherwise
|
||||
* @param int $duration the number of seconds in which the cached value will expire. 0 means never expire.
|
||||
* @return bool true if the value is successfully stored into cache, false otherwise
|
||||
*/
|
||||
protected function addValue($key, $value, $duration)
|
||||
{
|
||||
@@ -85,7 +85,7 @@ class XCache extends Cache
|
||||
* Deletes a value with the specified key from cache
|
||||
* This is the implementation of the method declared in the parent class.
|
||||
* @param string $key the key of the value to be deleted
|
||||
* @return boolean if no error happens during deletion
|
||||
* @return bool if no error happens during deletion
|
||||
*/
|
||||
protected function deleteValue($key)
|
||||
{
|
||||
@@ -95,7 +95,7 @@ class XCache extends Cache
|
||||
/**
|
||||
* Deletes all values from cache.
|
||||
* This is the implementation of the method declared in the parent class.
|
||||
* @return boolean whether the flush operation was successful.
|
||||
* @return bool whether the flush operation was successful.
|
||||
*/
|
||||
protected function flushValues()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user