Skip to content

Commit ebe542b

Browse files
authored
Merge pull request #163 from gimler/patch-2
tests: remove phpcs-fixer --diff-fomat option
2 parents 2960262 + afcb692 commit ebe542b

File tree

4 files changed

+21
-20
lines changed

4 files changed

+21
-20
lines changed

.github/workflows/static.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- name: PHP-CS-Fixer
1212
uses: docker://jakzal/phpqa:php7.3-alpine
1313
with:
14-
args: php-cs-fixer fix --dry-run --diff-format udiff -vvv
14+
args: php-cs-fixer fix --diff --dry-run -vvv
1515

1616
phpstan:
1717
name: PHPStan

.php-cs-fixer.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
$finder = PhpCsFixer\Finder::create()
3+
->in(__DIR__.'/src')
4+
->in(__DIR__.'/tests')
5+
->exclude('Resources')
6+
->name('*.php')
7+
;
8+
9+
$config = new PhpCsFixer\Config();
10+
$config
11+
->setRiskyAllowed(true)
12+
->setRules([
13+
'@Symfony' => true,
14+
'@Symfony:risky' => true,
15+
])
16+
->setFinder($finder)
17+
;
18+
19+
return $config;

.php_cs

Lines changed: 0 additions & 18 deletions
This file was deleted.

src/Visitor/Twig/Worker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
*/
2828
final class Worker
2929
{
30-
const UNDEFINED_DOMAIN = 'messages';
30+
public const UNDEFINED_DOMAIN = 'messages';
3131

3232
private $stack = [];
3333

0 commit comments

Comments
 (0)