From 8fce4f79ecd4a7a6ae1f28187252f268d6c31f4d Mon Sep 17 00:00:00 2001 From: Igor Denisenko Date: Sat, 30 May 2015 15:15:53 +0300 Subject: [PATCH] Require exact version of php-cs-fixer Every run of php-cs-fixer must be idempotent, hence even minor updates of this package must be prohibited. --- .php_cs | 6 ++++++ Dockerfile | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.php_cs b/.php_cs index 1ddb9a19f0..6eab089ae6 100644 --- a/.php_cs +++ b/.php_cs @@ -13,6 +13,12 @@ $config = Symfony\CS\Config\Config::create() 'no_blank_lines_before_namespace', // [contrib] Ordering use statements. 'ordered_use', + // [contrib] Annotations should be ordered so that param annotations come first, then throws annotations, then return annotations. + 'phpdoc_order', + // [contrib] Arrays should use the long syntax. + 'long_array_syntax', + // [contrib] Ensure there is no code on the same line as the PHP open tag. + 'newline_after_open_tag', )) ->finder($finder); diff --git a/Dockerfile b/Dockerfile index be10a7f936..410a1bac99 100644 --- a/Dockerfile +++ b/Dockerfile @@ -35,7 +35,7 @@ RUN composer global require "mayflower/php-codebrowser" RUN composer global require "sebastian/phpcpd" RUN composer global require "squizlabs/php_codesniffer" RUN composer global require "phploc/phploc" -RUN composer global require "fabpot/php-cs-fixer" +RUN composer global require "fabpot/php-cs-fixer=1.8.1" # Documentor dependencies