File tree Expand file tree Collapse file tree 10 files changed +53
-57
lines changed
src/Bridge/Symfony/DependencyInjection Expand file tree Collapse file tree 10 files changed +53
-57
lines changed Original file line number Diff line number Diff line change 19
19
- name : Run PHP-CS-Fixer
20
20
uses : docker://jakzal/phpqa:php7.3-alpine
21
21
with :
22
- args : php-cs-fixer fix --dry-run --diff-format udiff - vvv
22
+ args : php-cs-fixer fix --dry-run -vvv
Original file line number Diff line number Diff line change 3
3
/phpspec.yml
4
4
/phpunit.xml
5
5
/vendor /
6
+ /.php-cs-fixer.cache
7
+ /.phpunit.result.cache
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ $ finder = PhpCsFixer \Finder::create ()
4
+ ->name ('*.php ' )
5
+ ->in (__DIR__ .'/src ' )
6
+ ->in (__DIR__ .'/tests ' )
7
+ ;
8
+
9
+ $ config = new PhpCsFixer \Config ();
10
+
11
+ return $ config ->setRules ([
12
+ '@Symfony ' => true ,
13
+ '@Symfony:risky ' => true ,
14
+ ])
15
+ ->setRiskyAllowed (true )
16
+ ->setFinder ($ finder )
17
+ ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
.PHONY : ${TARGETS}
2
2
3
3
DIR := ${CURDIR}
4
- QA_IMAGE := jakzal/phpqa:php7.3 -alpine
4
+ QA_IMAGE := jakzal/phpqa:php8.1 -alpine
5
5
6
6
cs-fix :
7
- @docker run --rm -v $(DIR ) :/project -w /project $(QA_IMAGE ) php-cs-fixer fix --diff-format udiff - vvv
7
+ @docker run --rm -v $(DIR ) :/project -w /project $(QA_IMAGE ) php-cs-fixer fix -vvv
8
8
9
9
cs-diff :
10
- @docker run --rm -v $(DIR ) :/project -w /project $(QA_IMAGE ) php-cs-fixer fix --diff-format udiff -- dry-run -vvv
10
+ @docker run --rm -v $(DIR ) :/project -w /project $(QA_IMAGE ) php-cs-fixer fix --dry-run -vvv
11
11
12
12
phpstan :
13
13
@docker run --rm -v $(DIR ) :/project -w /project $(QA_IMAGE ) phpstan analyze
Original file line number Diff line number Diff line change 11
11
"require" : {
12
12
"php" : " ^7.2 || ^8.0" ,
13
13
"php-translation/symfony-storage" : " ^2.1" ,
14
- "symfony/translation" : " ^4.4.20 || ^5.2.5" ,
15
- "symfony/yaml" : " ^4.4.20 || ^5.2.5" ,
14
+ "symfony/translation" : " ^4.4.20 || ^5.2.5 || ^6.0 " ,
15
+ "symfony/yaml" : " ^4.4.20 || ^5.2.5 || ^6.0 " ,
16
16
"friendsofapi/localise.biz" : " ^1.0"
17
17
},
18
18
"require-dev" : {
19
19
"phpunit/phpunit" : " ^8.5" ,
20
- "symfony/framework-bundle" : " ^4.4.20 || ^5.2.5" ,
20
+ "symfony/framework-bundle" : " ^4.4.20 || ^5.2.5 || ^6.0 " ,
21
21
"nyholm/psr7" : " ^1.2" ,
22
- "nyholm/symfony-bundle-test" : " ^1.6.1" ,
22
+ "nyholm/symfony-bundle-test" : " ^1.6.1, <1.8 " ,
23
23
"php-http/curl-client" : " ^2.0" ,
24
24
"php-http/httplug-bundle" : " ^1.16" ,
25
- "php-http/message" : " ^1.6 "
25
+ "php-http/message" : " ^1.11 "
26
26
},
27
27
"autoload" : {
28
28
"psr-4" : {
Original file line number Diff line number Diff line change 1
1
parameters :
2
2
ignoreErrors :
3
- -
4
- message : " #^Method Translation\\\\ PlatformAdapter\\\\ Loco\\\\ Bridge\\\\ Symfony\\\\ DependencyInjection\\\\ TranslationAdapterLocoExtension\\ :\\ :load\\ (\\ ) has no return typehint specified\\ .$#"
5
- count : 1
6
- path : src/Bridge/Symfony/DependencyInjection/TranslationAdapterLocoExtension.php
7
-
8
3
-
9
4
message : " #^Call to an undefined method FAPI\\\\ Localise\\\\ Model\\\\ Translation\\\\ Translation\\ |Psr\\\\ Http\\\\ Message\\\\ ResponseInterface\\ :\\ :getTranslation\\ (\\ )\\ .$#"
10
5
count : 1
Original file line number Diff line number Diff line change @@ -7,6 +7,6 @@ parameters:
7
7
checkMissingIterableValueType: false
8
8
paths:
9
9
- src
10
- excludes_analyse :
10
+ excludePaths :
11
11
- vendor
12
12
- tests
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
-
3
2
<phpunit backupGlobals =" false"
4
- backupStaticAttributes =" false"
5
- colors =" false"
6
- convertErrorsToExceptions =" true"
7
- convertNoticesToExceptions =" true"
8
- convertWarningsToExceptions =" true"
9
- processIsolation =" false"
10
- stopOnFailure =" false"
11
- bootstrap =" ./vendor/autoload.php"
12
- >
3
+ backupStaticAttributes =" false"
4
+ colors =" false"
5
+ convertErrorsToExceptions =" true"
6
+ convertNoticesToExceptions =" true"
7
+ convertWarningsToExceptions =" true"
8
+ processIsolation =" false"
9
+ stopOnFailure =" false"
10
+ bootstrap =" ./vendor/autoload.php"
11
+ >
13
12
14
- <testsuites >
15
- <testsuite name =" Tests" >
16
- <directory >./tests</directory >
17
- </testsuite >
18
- </testsuites >
13
+ <testsuites >
14
+ <testsuite name =" Tests" >
15
+ <directory >./tests</directory >
16
+ </testsuite >
17
+ </testsuites >
19
18
20
- <filter >
21
- <whitelist >
22
- <directory suffix =" .php" >./</directory >
23
- <exclude >
24
- <directory >vendor</directory >
25
- <directory >Tests</directory >
26
- </exclude >
27
- </whitelist >
28
- </filter >
19
+ <filter >
20
+ <whitelist >
21
+ <directory suffix =" .php" >./</directory >
22
+ <exclude >
23
+ <directory >vendor</directory >
24
+ <directory >Tests</directory >
25
+ </exclude >
26
+ </whitelist >
27
+ </filter >
29
28
</phpunit >
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ class TranslationAdapterLocoExtension extends Extension
29
29
/**
30
30
* {@inheritdoc}
31
31
*/
32
- public function load (array $ configs , ContainerBuilder $ container )
32
+ public function load (array $ configs , ContainerBuilder $ container ): void
33
33
{
34
34
$ configuration = new Configuration ();
35
35
$ config = $ this ->processConfiguration ($ configuration , $ configs );
You can’t perform that action at this time.
0 commit comments