From 98f9d9b804af7083bcd5efdb5c98eabedbe137e6 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Fri, 22 May 2020 15:30:53 +0200 Subject: [PATCH] fix method name --- src/EventSubscriber/CheckRequirementsSubscriber.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/EventSubscriber/CheckRequirementsSubscriber.php b/src/EventSubscriber/CheckRequirementsSubscriber.php index 44243a3d0..aada2becc 100644 --- a/src/EventSubscriber/CheckRequirementsSubscriber.php +++ b/src/EventSubscriber/CheckRequirementsSubscriber.php @@ -85,7 +85,7 @@ public function handleKernelException(ExceptionEvent $event): void // Check if SQLite is enabled if ($isDriverException && $this->isSQLitePlatform() && !\extension_loaded('sqlite3')) { - $event->setException(new \Exception('PHP extension "sqlite3" must be enabled because, by default, the Symfony Demo application uses SQLite to store its information.')); + $event->setThrowable(new \Exception('PHP extension "sqlite3" must be enabled because, by default, the Symfony Demo application uses SQLite to store its information.')); } }