Skip to content

Commit

Permalink
Require exact version of php-cs-fixer
Browse files Browse the repository at this point in the history
Every run of php-cs-fixer must be idempotent, hence even minor updates of this package must be prohibited.
  • Loading branch information
im-denisenko committed May 30, 2015
1 parent 7a35358 commit 8fce4f7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .php_cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8fce4f7

Please sign in to comment.