-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding of messages can be chained #1449
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about this??
laravel-debugbar/src/Facades/Debugbar.php
Lines 7 to 20 in 27b088a
/** | |
* @method static LaravelDebugbar addCollector(DataCollectorInterface $collector) | |
* @method static void addMessage(mixed $message, string $label = 'info') | |
* @method static void alert(mixed $message) | |
* @method static void critical(mixed $message) | |
* @method static void debug(mixed $message) | |
* @method static void emergency(mixed $message) | |
* @method static void error(mixed $message) | |
* @method static LaravelDebugbar getCollector(string $name) | |
* @method static bool hasCollector(string $name) | |
* @method static void info(mixed $message) | |
* @method static void log(mixed $message) | |
* @method static void notice(mixed $message) | |
* @method static void warning(mixed $message) |
laravel-debugbar/src/LaravelDebugbar.php
Lines 48 to 56 in 27b088a
* @method void emergency(...$message) | |
* @method void alert(...$message) | |
* @method void critical(...$message) | |
* @method void error(...$message) | |
* @method void warning(...$message) | |
* @method void notice(...$message) | |
* @method void info(...$message) | |
* @method void debug(...$message) | |
* @method void log(...$message) |
Do you mean messages must be added like this |
I'm not talking about that, I'm talking about the |
It should follow the guidelines of psr/log, |
yes we follow psr/log for this. |
fixes #1376
Allow to call
debugbar()->emergency('message #1')->alert('message #2')->critical('message #3')
.