From 707c7a42e1af34b7570e95b473c37e4298a863ae Mon Sep 17 00:00:00 2001 From: "Brooke." Date: Fri, 8 Nov 2024 13:33:52 -0800 Subject: [PATCH] Update Flasher Class Parameter Order The order of `$title` and `$options` has changed, if one tries to pass a string to parameter three ($options) an error is thrown. This updates the docs accordingly. Looks like the order was changed here: https://github.com/php-flasher/php-flasher/blob/2.x/src/Prime/helpers.php#L21-L36 --- docs/_includes/_usage.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_includes/_usage.md b/docs/_includes/_usage.md index 3619f5f3..f86486e7 100644 --- a/docs/_includes/_usage.md +++ b/docs/_includes/_usage.md @@ -99,7 +99,7 @@ flash()->{{ type }}('{{ message }}'); These four methods — `success()`, `error()`, `warning()`, and `info()` — are shortcuts for the `flash()` method. They let you specify the `type` and `message` in one method call instead of passing them separately to `flash()`. ```php -flash()->flash(string $type, string $message, string $title = null, array $options = []) +flash()->flash(string $type, string $message, array $options = [], string $title = null) ``` {% assign id = '#/ usage flash' %}