Skip to content

Commit c35262e

Browse files
committed
Update php-cs-fixer
1 parent 1764929 commit c35262e

5 files changed

Lines changed: 48 additions & 7 deletions

File tree

CHANGELOG.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,20 @@
77
## Release 0.131
88

99
#### Added
10-
- Added binary `sqlite3` to all PHP images (#856)[https://github.com/cytopia/devilbox/issues/856]
11-
- Added binary `laravel` to PHP 8.0 and PHP 8.1 (#823)[https://github.com/cytopia/devilbox/issues/823]
12-
- Added AVIF support in GD for PHP 8.1 (#834)[https://github.com/cytopia/devilbox/issues/834]
13-
- Added extension `amqp` to PHP 8.0 and PHP 8.1 (#826)[https://github.com/cytopia/devilbox/issues/826]
14-
- Added extension `uploadprogress` to PHP 8.0 and PHP 8.1
10+
- Added binary `sqlite3` to all PHP images [#856](https://github.com/cytopia/devilbox/issues/856)
11+
- Added binary `laravel` to PHP 8.0 and PHP 8.1 [#823](https://github.com/cytopia/devilbox/issues/823)
12+
- Added AVIF support in GD for PHP 8.1 [#834](https://github.com/cytopia/devilbox/issues/834)
13+
- Added extension `amqp` to PHP 8.0 and PHP 8.1 [#826](https://github.com/cytopia/devilbox/issues/826)
14+
- Added extension `uploadprogress` to PHP 8.0 and PHP 8.1 [#158](https://github.com/devilbox/docker-php-fpm/pull/158)
1515
- Added extension `imagick` to PHP 8.0 and PHP 8.1
1616
- Added extension `rdkafka` to PHP 8.0 and PHP 8.1
1717
- Added extension `xlswriter` to PHP 8.1
1818
- Added extension `pdo_dblib` to PHP 8.1
1919
- Added extension `uuid` to all PHP versions (except 5.2)
2020

21+
#### Changed
22+
- Updated `php-cs-fixer` to latest version [#219](https://github.com/devilbox/docker-php-fpm/pull/219)
23+
2124

2225
## Release 0.130
2326

Dockerfiles/work/Dockerfile-7.4

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,11 @@ RUN set -eux \
335335
&& chmod +x /usr/local/bin/phpcbf \
336336
\
337337
\
338+
# -------------------- php-cs-fixer --------------------
339+
&& curl -sS -k -L --fail https://cs.symfony.com/download/php-cs-fixer-v3.phar > /usr/local/bin/php-cs-fixer \
340+
&& chmod +x /usr/local/bin/php-cs-fixer \
341+
\
342+
\
338343
# -------------------- phpmd --------------------
339344
&& curl -sS -k -L --fail https://phpmd.org/static/latest/phpmd.phar > phpmd.phar \
340345
&& mv phpmd.phar /usr/local/bin/phpmd \
@@ -603,6 +608,7 @@ RUN set -eux \
603608
&& phalcon commands | grep -E '[0-9][.0-9]+' \
604609
&& phpcs --version | grep -E 'version [0-9][.0-9]+' \
605610
&& phpcbf --version | grep -E 'version [0-9][.0-9]+' \
611+
&& php-cs-fixer --version 2>&1 | grep -E 'Fixer\s+(version\s*)?[-_.0-9]+\s+' \
606612
&& phpmd --version | grep -E '^PHPMD [0-9][.0-9]+' \
607613
&& phpunit --version | grep -iE '^PHPUnit\s[0-9][.0-9]+' \
608614
&& symfony -V | grep -Ei 'version\s*.*v[0-9][.0-9]+' \

Dockerfiles/work/Dockerfile-8.0

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,11 @@ RUN set -eux \
274274
&& chmod +x /usr/local/bin/phpcbf \
275275
\
276276
\
277+
# -------------------- php-cs-fixer --------------------
278+
&& curl -sS -k -L --fail https://cs.symfony.com/download/php-cs-fixer-v3.phar > /usr/local/bin/php-cs-fixer \
279+
&& chmod +x /usr/local/bin/php-cs-fixer \
280+
\
281+
\
277282
# -------------------- phpmd --------------------
278283
&& curl -sS -k -L --fail https://phpmd.org/static/latest/phpmd.phar > phpmd.phar \
279284
&& mv phpmd.phar /usr/local/bin/phpmd \
@@ -513,6 +518,7 @@ RUN set -eux \
513518
&& mysqldump-secure --version | grep -E 'Version:\s*[0-9][.0-9]+' \
514519
&& phpcs --version | grep -E 'version [0-9][.0-9]+' \
515520
&& phpcbf --version | grep -E 'version [0-9][.0-9]+' \
521+
&& php-cs-fixer --version 2>&1 | grep -E 'Fixer\s+(version\s*)?[-_.0-9]+\s+' \
516522
&& phpmd --version | grep -E '^PHPMD [0-9][.0-9]+' \
517523
&& symfony -V | grep -Ei 'version\s*.*v[0-9][.0-9]+' \
518524
&& wkhtmltopdf --version | grep -E "^wkhtmltopdf [0-9][.0-9]+\s+\(.+patched.+\)" \

Dockerfiles/work/Dockerfile-8.1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,11 @@ RUN set -eux \
274274
&& chmod +x /usr/local/bin/phpcbf \
275275
\
276276
\
277+
# -------------------- php-cs-fixer --------------------
278+
&& curl -sS -k -L --fail https://cs.symfony.com/download/php-cs-fixer-v3.phar > /usr/local/bin/php-cs-fixer \
279+
&& chmod +x /usr/local/bin/php-cs-fixer \
280+
\
281+
\
277282
# -------------------- phpmd --------------------
278283
&& curl -sS -k -L --fail https://phpmd.org/static/latest/phpmd.phar > phpmd.phar \
279284
&& mv phpmd.phar /usr/local/bin/phpmd \
@@ -513,6 +518,7 @@ RUN set -eux \
513518
&& mysqldump-secure --version | grep -E 'Version:\s*[0-9][.0-9]+' \
514519
&& phpcs --version | grep -E 'version [0-9][.0-9]+' \
515520
&& phpcbf --version | grep -E 'version [0-9][.0-9]+' \
521+
&& php-cs-fixer --version 2>&1 | grep -E 'Fixer\s+(version\s*)?[-_.0-9]+\s+' \
516522
&& phpmd --version | grep -E '^PHPMD [0-9][.0-9]+' \
517523
&& symfony -V | grep -Ei 'version\s*.*v[0-9][.0-9]+' \
518524
&& wkhtmltopdf --version | grep -E "^wkhtmltopdf [0-9][.0-9]+\s+\(.+patched.+\)" \

build/ansible/group_vars/all/work.yml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -861,7 +861,7 @@ software_available:
861861
curl -sS -L --fail https://squizlabs.github.io/PHP_CodeSniffer/phpcbf.phar > /usr/local/bin/phpcbf \
862862
&& chmod +x /usr/local/bin/phpcbf \
863863
php-cs-fixer:
864-
disabled: [5.2, 7.4, 8.0, 8.1]
864+
disabled: [5.2]
865865
check: php-cs-fixer --version 2>&1 | grep -E 'Fixer\s+(version\s*)?[-_.0-9]+\s+'
866866
5.3:
867867
command: |
@@ -875,10 +875,30 @@ software_available:
875875
command: |
876876
curl -sS -k -L --fail https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v2.2.19/php-cs-fixer.phar > /usr/local/bin/php-cs-fixer \
877877
&& chmod +x /usr/local/bin/php-cs-fixer \
878-
all:
878+
5.6:
879+
command: |
880+
curl -sS -k -L --fail https://cs.symfony.com/download/php-cs-fixer-v2.phar > /usr/local/bin/php-cs-fixer \
881+
&& chmod +x /usr/local/bin/php-cs-fixer \
882+
7.0:
883+
command: |
884+
curl -sS -k -L --fail https://cs.symfony.com/download/php-cs-fixer-v2.phar > /usr/local/bin/php-cs-fixer \
885+
&& chmod +x /usr/local/bin/php-cs-fixer \
886+
7.1:
879887
command: |
880888
curl -sS -k -L --fail https://cs.symfony.com/download/php-cs-fixer-v2.phar > /usr/local/bin/php-cs-fixer \
881889
&& chmod +x /usr/local/bin/php-cs-fixer \
890+
7.2:
891+
command: |
892+
curl -sS -k -L --fail https://cs.symfony.com/download/php-cs-fixer-v2.phar > /usr/local/bin/php-cs-fixer \
893+
&& chmod +x /usr/local/bin/php-cs-fixer \
894+
7.3:
895+
command: |
896+
curl -sS -k -L --fail https://cs.symfony.com/download/php-cs-fixer-v2.phar > /usr/local/bin/php-cs-fixer \
897+
&& chmod +x /usr/local/bin/php-cs-fixer \
898+
all:
899+
command: |
900+
curl -sS -k -L --fail https://cs.symfony.com/download/php-cs-fixer-v3.phar > /usr/local/bin/php-cs-fixer \
901+
&& chmod +x /usr/local/bin/php-cs-fixer \
882902
phpmd:
883903
disabled: [5.2]
884904
check: phpmd --version | grep -E '^PHPMD [0-9][.0-9]+'

0 commit comments

Comments
 (0)