Simplify PHPDoc comments in Notyf integration

Remove verbose documentation pattern references and redundant
explanations, keeping only essential type annotations.
This commit is contained in:
Younes ENNAJI
2026-01-15 22:51:25 +01:00
parent 611fda9c61
commit ea164fde17
11 changed files with 8 additions and 239 deletions
+2 -1
View File
@@ -37,6 +37,7 @@ if (!\function_exists('Flasher\Noty\Prime\noty')) {
* buttons?: string[],
* visibilityControl?: bool,
* } $options
* @param 'success'|'info'|'warning'|'error'|'alert'|'information' $type
*
* @phpstan-return ($message is empty ? NotyInterface : Envelope)
*/
@@ -48,6 +49,6 @@ if (!\function_exists('Flasher\Noty\Prime\noty')) {
return $factory;
}
return $factory->flash($type, $message, $options, $title); // @phpstan-ignore-line
return $factory->flash($type, $message, $options, $title);
}
}