Permalink
Browse files

update to ECS 3.2

  • Loading branch information...
dg committed Feb 11, 2018
1 parent 8274a6e commit eb32e4aca059c45a7803df0d84f22e44af858204
Showing with 29 additions and 3 deletions.
  1. +1 −1 composer.json
  2. +28 −2 ecs
@@ -3,7 +3,7 @@
"license": "MIT",
"require": {
"php": "^7.1",
"symplify/easy-coding-standard": "~3.1.2"
"symplify/easy-coding-standard": "^3.2"
},
"require-dev": {
"tracy/tracy": "^2.4"
30 ecs
@@ -1,4 +1,30 @@
#!/usr/bin/env php
<?php
<?php declare(strict_types=1);
require __DIR__ . '/vendor/symplify/easy-coding-standard/bin/easy-coding-standard.php';
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\DependencyInjection\Container;
use Symplify\EasyCodingStandard\Console\Application;
use Symplify\PackageBuilder\Console\Style\SymfonyStyleFactory;
// performance boost
gc_disable();
try {
/** @var Container $container */
$container = require __DIR__ . '/vendor/symplify/easy-coding-standard/bin/ecs-container.php';
/** @var Application $application */
$application = $container->get(Application::class);
/** @var InputInterface $input */
$input = $container->get(InputInterface::class);
/** @var OutputInterface $output */
$output = $container->get(OutputInterface::class);
exit($application->run($input, $output));
} catch (Throwable $throwable) {
$symfonyStyle = SymfonyStyleFactory::create();
$symfonyStyle->error($throwable->getMessage());
exit(1);
}

0 comments on commit eb32e4a

Please sign in to comment.