Add type hints from DocBlocks

This commit is contained in:
Shift
2023-05-24 21:33:16 +00:00
parent 979b9f704c
commit 4d7d0ed74d
46 changed files with 191 additions and 190 deletions

View File

@@ -24,7 +24,7 @@ class UniqueFileName implements Rule
* @param mixed $value
* @return boolean
*/
public function passes($attribute, $value)
public function passes(string $attribute, $value): bool
{
return (Media::fileExists($value) === false);
}
@@ -34,7 +34,7 @@ class UniqueFileName implements Rule
*
* @return string
*/
public function message()
public function message(): string
{
return 'The file name already exists.';
}