Skip to content

Commit e2a4620

Browse files
Naorayclaude
andcommitted
fix: remove unnecessary method_exists check for Laravel 11+
The dehydrating method is always available in Laravel 11+, which is the minimum supported version for this package. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent dfed772 commit e2a4620

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/GithubMonologServiceProvider.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@ public function boot(): void
3535
*/
3636
protected function registerContextDehydration(): void
3737
{
38-
if (! method_exists(Context::class, 'dehydrating')) {
39-
return;
40-
}
41-
4238
Context::dehydrating(function ($context) {
4339
foreach (['queries', 'outgoing_requests', 'session', 'request'] as $key) {
4440
if ($context->has($key)) {

0 commit comments

Comments
 (0)