File tree Expand file tree Collapse file tree 4 files changed +14
-12
lines changed
Expand file tree Collapse file tree 4 files changed +14
-12
lines changed Original file line number Diff line number Diff line change 1414 ->in (__DIR__ .'/src ' )
1515 ->in (__DIR__ .'/tests ' )->exclude ('Fixtures/var ' )
1616;
17+ return (new PhpCsFixer \Config ())
18+ ->setParallelConfig (PhpCsFixer \Runner \Parallel \ParallelConfigFactory::detect ())
19+ ->setUnsupportedPhpVersionAllowed (true )
1720
18- $ config = new PhpCsFixer \Config ();
19- return $ config
2021 ->setRiskyAllowed (true )
2122 ->setRules ([
2223 '@Symfony ' => true ,
Original file line number Diff line number Diff line change 1515 "issues" : " https://github.com/omines/akismet/issues"
1616 },
1717 "require" : {
18- "php" : " >=8.1 " ,
18+ "php" : " >=8.2 " ,
1919 "psr/log" : " ^3.0" ,
2020 "symfony/http-client-contracts" : " ^3"
2121 },
2222 "require-dev" : {
2323 "ext-json" : " *" ,
24- "ekino/phpstan-banned-code" : " ^2.1 " ,
24+ "ekino/phpstan-banned-code" : " ^3.0.0 " ,
2525 "friendsofphp/php-cs-fixer" : " ^3.64.0" ,
2626 "nyholm/psr7" : " ^1.8.2" ,
2727 "phpstan/extension-installer" : " ^1.4.3" ,
28- "phpstan/phpstan" : " ^1.12.7 " ,
29- "phpstan/phpstan-phpunit" : " ^1.4.0 " ,
28+ "phpstan/phpstan" : " ^2.1.37 " ,
29+ "phpstan/phpstan-phpunit" : " ^2.0.12 " ,
3030 "phpunit/phpunit" : " ^10.5.37" ,
3131 "psr/http-message" : " ^1.0 || ^2.0" ,
32- "symfony/dotenv" : " ^6.4|^7.1.5" ,
33- "symfony/http-client" : " ^6.4|^7.1.5" ,
34- "symfony/http-foundation" : " ^6.4|^7.1.5"
32+ "symfony/dotenv" : " ^6.4|^7.1.5|^8.0 " ,
33+ "symfony/http-client" : " ^6.4|^7.1.5|^8.0 " ,
34+ "symfony/http-foundation" : " ^6.4|^7.1.5|^8.0 "
3535 },
3636 "suggest" : {
3737 "symfony/http-client" : " As asynchronous HTTP Client"
Original file line number Diff line number Diff line change 11parameters :
2- level : max
2+ level : 8
33 paths :
44 - src
5- - tests
5+ # - tests
Original file line number Diff line number Diff line change @@ -57,7 +57,8 @@ public function getMonths(): array
5757 private function parse (): void
5858 {
5959 if (!$ this ->parsed ) {
60- if (!is_array ($ decoded = \json_decode ($ this ->getContent (), true ))) {
60+ $ decoded = \json_decode ($ this ->getContent (), true );
61+ if (!is_array ($ decoded )) {
6162 throw new \LogicException ('Malformed response to Akismet key/site activity call ' ); // @codeCoverageIgnore
6263 }
6364
You can’t perform that action at this time.
0 commit comments