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
This commit is contained in:
Brooke.
2024-11-08 13:33:52 -08:00
committed by GitHub
parent 456016a585
commit 707c7a42e1
+1 -1
View File
@@ -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()`. 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 ```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' %} {% assign id = '#/ usage flash' %}