diff --git a/projects/symfony.com/cs/package.yml b/projects/symfony.com/cs/package.yml new file mode 100644 index 00000000..27688455 --- /dev/null +++ b/projects/symfony.com/cs/package.yml @@ -0,0 +1,29 @@ +distributable: https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/releases/download/{{version.tag}}/php-cs-fixer.phar + +versions: + github: PHP-CS-Fixer/PHP-CS-Fixer + +warnings: + - vendored + +dependencies: + php.net: '>=7.4' + +build: + - install -D symfony.com∕cs-{{version}}.phar {{prefix}}/libexec/lib/php-cs-fixer.phar + - run: | + cat > php-cs-fixer <foo( 'Hello World!' );" > test.php + - php-cs-fixer fix test.php + - cat test.php | grep "\$this->foo('Hello World!');"