I wonder how can I see syntax errors like this (missing semicolon):
This will cause a WSOD (white screen of death
Install Symfony/debug using composer require symfony/debug and add these lines before Silex\Application instance
use \Symfony\Component\Debug\ErrorHandler;
use \Symfony\Component\Debug\ExceptionHandler;
ini_set('display_errors', 0);
error_reporting(-1);
ErrorHandler::register();
ExceptionHandler::register();