Test Failed
Push — master ( ca58d9...3c676e )
by Sebastian
14:55 queued 10:31
created
src/Linna/Cache/MemcachedCache.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
      * @throws \Psr\SimpleCache\InvalidArgumentException
83 83
      *   MUST be thrown if the $key string is not a legal value.
84 84
      */
85
-    public function set(string $key, mixed $value, DateInterval|int|null $ttl = null): bool
85
+    public function set(string $key, mixed $value, DateInterval | int | null $ttl = null): bool
86 86
     {
87 87
         return $this->memcached->set($key, $value, $this->handleTtl($ttl));
88 88
     }
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
      *
97 97
      * @return int Ttl in seconds.
98 98
      */
99
-    private function handleTtl(DateInterval|int|null $ttl): int
99
+    private function handleTtl(DateInterval | int | null $ttl): int
100 100
     {
101 101
         if ($ttl == null) {
102 102
             return 0;
Please login to merge, or discard this patch.
src/Linna/Cache/DiskCache.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
      * @throws \Psr\SimpleCache\InvalidArgumentException
115 115
      *   MUST be thrown if the $key string is not a legal value.
116 116
      */
117
-    public function set(string $key, mixed $value, DateInterval|int|null $ttl = null): bool
117
+    public function set(string $key, mixed $value, DateInterval | int | null $ttl = null): bool
118 118
     {
119 119
         $vTtl = $this->handleTtl($ttl);
120 120
 
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
      *
146 146
      * @return int Ttl in seconds.
147 147
      */
148
-    private function handleTtl(DateInterval|int|null $ttl): int
148
+    private function handleTtl(DateInterval | int | null $ttl): int
149 149
     {
150 150
         if ($ttl == null) {
151 151
             return 0;
Please login to merge, or discard this patch.