Skip to content

Commit b24e05c

Browse files
ViewModeSwitcher: Add missing types
1 parent dfad912 commit b24e05c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Control/ViewModeSwitcher.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ public function setViewMode(string $name): static
226226
/**
227227
* Set callback to protect ids with
228228
*
229-
* @param callable $protector
229+
* @param callable(string): string $protector
230230
*
231231
* @return $this
232232
*/
@@ -237,7 +237,7 @@ public function setIdProtector(callable $protector): static
237237
return $this;
238238
}
239239

240-
private function protectId($id)
240+
private function protectId(string $id): string
241241
{
242242
if (is_callable($this->protector)) {
243243
return call_user_func($this->protector, $id);

0 commit comments

Comments
 (0)