You've already forked php-flasher
mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-04-05 12:32:55 +01:00
Simplify PHPDoc comments in Notyf integration
Remove verbose documentation pattern references and redundant explanations, keeping only essential type annotations.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user