ViewModeSwitcher
1 parent dfad912 commit b24e05cCopy full SHA for b24e05c
1 file changed
src/Control/ViewModeSwitcher.php
@@ -226,7 +226,7 @@ public function setViewMode(string $name): static
226
/**
227
* Set callback to protect ids with
228
*
229
- * @param callable $protector
+ * @param callable(string): string $protector
230
231
* @return $this
232
*/
@@ -237,7 +237,7 @@ public function setIdProtector(callable $protector): static
237
return $this;
238
}
239
240
- private function protectId($id)
+ private function protectId(string $id): string
241
{
242
if (is_callable($this->protector)) {
243
return call_user_func($this->protector, $id);
0 commit comments