Skip to content

Commit 3df0938

Browse files
committed
Bump dependencies
1 parent 8c3ac81 commit 3df0938

File tree

4 files changed

+14
-12
lines changed

4 files changed

+14
-12
lines changed

.php-cs-fixer.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@
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,

composer.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,23 @@
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"

phpstan.neon

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
parameters:
2-
level: max
2+
level: 8
33
paths:
44
- src
5-
- tests
5+
# - tests

src/API/ActivityResponse.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)