Completed
Pull Request — master (#15)
by James
06:46
created
src/SimpleCacheAdapter.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
 
118 118
     /**
119 119
      * @param array|\Traversable $keys
120
-     * @param mixed $default
120
+     * @param string $default
121 121
      * @return array
122 122
      * @throws \Roave\DoctrineSimpleCache\Exception\InvalidArgumentException
123 123
      */
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
     }
148 148
 
149 149
     /**
150
-     * @param array|\Traversable $keys
150
+     * @param string[] $keys
151 151
      * @return bool
152 152
      * @throws \Roave\DoctrineSimpleCache\Exception\InvalidArgumentException
153 153
      */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
             throw Exception\InvalidArgumentException::fromEmptyKey();
50 50
         }
51 51
 
52
-        if (preg_match('/[' . preg_quote('{}()/\@:', '/') . ']/', $key)) {
52
+        if (preg_match('/['.preg_quote('{}()/\@:', '/').']/', $key)) {
53 53
             throw Exception\InvalidArgumentException::fromInvalidKeyCharacters($key);
54 54
         }
55 55
     }
Please login to merge, or discard this patch.