Skip to content

Commit fab92a7

Browse files
committed
Deprecate *Response::create() methods
1 parent b9c318a commit fab92a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/Kernel/ConcreteMicroKernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class ConcreteMicroKernel extends Kernel implements EventSubscriberInterface
3333
public function onKernelException(ExceptionEvent $event)
3434
{
3535
if ($event->getThrowable() instanceof Danger) {
36-
$event->setResponse(Response::create('It\'s dangerous to go alone. Take this ⚔'));
36+
$event->setResponse(new Response('It\'s dangerous to go alone. Take this ⚔'));
3737
}
3838
}
3939

0 commit comments

Comments
 (0)