@@ -32,7 +32,7 @@ public function all(bool $reloadCache = false): array
3232 /**
3333 * {@inheritdoc}
3434 */
35- protected function setContent (array $ values )
35+ protected function setContent (array $ values ): static
3636 {
3737 $ this ->clearCache ();
3838
@@ -80,7 +80,7 @@ protected function dispatcher(): Dispatcher
8080 /**
8181 * {@inheritdoc}
8282 */
83- public function put ($ name , $ value = null )
83+ public function put (array | string $ name , mixed $ value = null ): static
8484 {
8585 // Get arguments to event
8686 $ oldValue = parent ::get ($ name );
@@ -99,7 +99,7 @@ public function put($name, $value = null)
9999 /**
100100 * {@inheritdoc}
101101 */
102- public function forget (string $ key )
102+ public function forget (string $ key ): static
103103 {
104104 // Get arguments to event
105105 $ oldValue = parent ::get ($ key );
@@ -117,7 +117,7 @@ public function forget(string $key)
117117 /**
118118 * {@inheritdoc}
119119 */
120- public function flush ()
120+ public function flush (): static
121121 {
122122 $ result = parent ::flush ();
123123
@@ -130,7 +130,7 @@ public function flush()
130130 /**
131131 * {@inheritdoc}
132132 */
133- public function flushStartingWith (string $ startingWith = '' )
133+ public function flushStartingWith (string $ startingWith = '' ): static
134134 {
135135 $ result = parent ::flushStartingWith ($ startingWith );
136136
0 commit comments