diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php index 29cde25..54bc56c 100644 --- a/.php-cs-fixer.dist.php +++ b/.php-cs-fixer.dist.php @@ -22,6 +22,7 @@ ->setFinder($finder) ->setRules([ 'static_lambda' => true, + '@PER-CS' => true, ]) ->setCacheFile(__DIR__ . '/var/.php-cs-fixer.cache'); diff --git a/app.php b/app.php index b12648f..1b04eb6 100644 --- a/app.php +++ b/app.php @@ -7,6 +7,6 @@ try { $core = new App\Action(); $core->run(); -} catch (Exception $e) { - // echo $e->getMessage(); +} catch (Exception) { + // echo 'Error: ' . $e->getMessage() . "\n" . 'Trace: ' . $e->getTraceAsString(); } diff --git a/phpunit.xml.dist b/phpunit.xml.dist index c02aa6a..4ae17de 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -22,6 +22,7 @@ src + app.php diff --git a/rector.php b/rector.php index 20d190e..b0312db 100644 --- a/rector.php +++ b/rector.php @@ -10,6 +10,7 @@ $rectorConfig->parallel(); $rectorConfig->cacheDirectory(__DIR__ . '/var/rector'); $rectorConfig->paths([ + __DIR__ . '/app.php', __DIR__ . '/src', __DIR__ . '/tests', ]);