You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -99,11 +99,11 @@ public function getMultiple($keys, $default = null)
99
99
{
100
100
if ($keysinstanceof \Traversable) {
101
101
$keys = iterator_to_array($keys, false);
102
-
} elseif (!is_array($keys)) {
102
+
} elseif (!\is_array($keys)) {
103
103
thrownewInvalidArgumentException(sprintf('Cache keys must be array or Traversable, "%s" given', is_object($keys) ? get_class($keys) : gettype($keys)));
104
104
}
105
105
foreach ($keysas$key) {
106
-
if (!is_string($key)) {
106
+
if (!\is_string($key)) {
107
107
thrownewInvalidArgumentException(sprintf('Cache key must be string, "%s" given.', is_object($key) ? get_class($key) : gettype($key)));
108
108
}
109
109
}
@@ -119,7 +119,7 @@ public function getMultiple($keys, $default = null)
119
119
*/
120
120
publicfunctionhas($key)
121
121
{
122
-
if (!is_string($key)) {
122
+
if (!\is_string($key)) {
123
123
thrownewInvalidArgumentException(sprintf('Cache key must be string, "%s" given.', is_object($key) ? get_class($key) : gettype($key)));
124
124
}
125
125
if (null === $this->values) {
@@ -134,7 +134,7 @@ public function has($key)
134
134
*/
135
135
publicfunctiondelete($key)
136
136
{
137
-
if (!is_string($key)) {
137
+
if (!\is_string($key)) {
138
138
thrownewInvalidArgumentException(sprintf('Cache key must be string, "%s" given.', is_object($key) ? get_class($key) : gettype($key)));
139
139
}
140
140
if (null === $this->values) {
@@ -149,15 +149,15 @@ public function delete($key)
149
149
*/
150
150
publicfunctiondeleteMultiple($keys)
151
151
{
152
-
if (!is_array($keys) && !$keysinstanceof \Traversable) {
152
+
if (!\is_array($keys) && !$keysinstanceof \Traversable) {
153
153
thrownewInvalidArgumentException(sprintf('Cache keys must be array or Traversable, "%s" given', is_object($keys) ? get_class($keys) : gettype($keys)));
154
154
}
155
155
156
156
$deleted = true;
157
157
$fallbackKeys = array();
158
158
159
159
foreach ($keysas$key) {
160
-
if (!is_string($key)) {
160
+
if (!\is_string($key)) {
161
161
thrownewInvalidArgumentException(sprintf('Cache key must be string, "%s" given.', is_object($key) ? get_class($key) : gettype($key)));
162
162
}
163
163
@@ -183,7 +183,7 @@ public function deleteMultiple($keys)
183
183
*/
184
184
publicfunctionset($key, $value, $ttl = null)
185
185
{
186
-
if (!is_string($key)) {
186
+
if (!\is_string($key)) {
187
187
thrownewInvalidArgumentException(sprintf('Cache key must be string, "%s" given.', is_object($key) ? get_class($key) : gettype($key)));
188
188
}
189
189
if (null === $this->values) {
@@ -198,15 +198,15 @@ public function set($key, $value, $ttl = null)
198
198
*/
199
199
publicfunctionsetMultiple($values, $ttl = null)
200
200
{
201
-
if (!is_array($values) && !$valuesinstanceof \Traversable) {
201
+
if (!\is_array($values) && !$valuesinstanceof \Traversable) {
202
202
thrownewInvalidArgumentException(sprintf('Cache values must be array or Traversable, "%s" given', is_object($values) ? get_class($values) : gettype($values)));
203
203
}
204
204
205
205
$saved = true;
206
206
$fallbackValues = array();
207
207
208
208
foreach ($valuesas$key => $value) {
209
-
if (!is_string($key) && !is_int($key)) {
209
+
if (!\is_string($key) && !\is_int($key)) {
210
210
thrownewInvalidArgumentException(sprintf('Cache key must be string, "%s" given.', is_object($key) ? get_class($key) : gettype($key)));
211
211
}
212
212
@@ -234,7 +234,7 @@ private function generateItems(array $keys, $default)
0 commit comments