Skip to content

Commit 5b57d21

Browse files
author
Stephan Wentz
committed
fix: Allow symfony 7
1 parent ae430f7 commit 5b57d21

File tree

2 files changed

+17
-14
lines changed

2 files changed

+17
-14
lines changed

composer.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,23 @@
1111
"monolog/monolog": "^3.0",
1212
"nyholm/psr7": "^1.2.1",
1313
"psr/log": "^1.1|^2.0|^3.0",
14-
"sentry/sentry": "^3.1",
15-
"symfony/config": "^6.2",
16-
"symfony/dependency-injection": "^6.2",
17-
"symfony/http-client": "^6.2",
18-
"symfony/http-kernel": "^6.2",
19-
"symfony/yaml": "^6.2"
14+
"sentry/sentry": "^3.1|^4.0",
15+
"symfony/config": "^6.2|^7.0",
16+
"symfony/dependency-injection": "^6.2|^7.0",
17+
"symfony/http-client": "^6.2|^7.0",
18+
"symfony/http-kernel": "^6.2|^7.0",
19+
"symfony/yaml": "^6.2|^7.0"
2020
},
2121
"require-dev": {
2222
"brainbits/phpcs-standard": "^7.0",
23-
"ergebnis/phpstan-rules": "^1.0",
23+
"ergebnis/phpstan-rules": "^2.0",
2424
"nyholm/nsa": "^1.2",
2525
"phpstan/phpstan": "^1.8",
2626
"phpstan/phpstan-phpunit": "^1.1",
2727
"phpunit/phpunit": "^10.1",
28-
"symfony/console": "^6.2",
29-
"symfony/messenger": "^6.2",
30-
"symfony/security-bundle": "^6.2",
28+
"symfony/console": "^6.2|^7.0",
29+
"symfony/messenger": "^6.2|^7.0",
30+
"symfony/security-bundle": "^6.2|^7.0",
3131
"thecodingmachine/phpstan-strict-rules": "^1.0"
3232
},
3333
"suggest": {

phpstan.neon.dist

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,13 @@ parameters:
1111
- src/Sentry/SentryHandler.php
1212
- tests/Sentry/SentryHandlerTest.php
1313
ergebnis:
14-
classesAllowedToBeExtended:
15-
- BGalati\MonologSentryHandler\SentryHandler
16-
- Symfony\Component\HttpKernel\Bundle\Bundle
17-
- Symfony\Component\HttpKernel\DependencyInjection\Extension
14+
noParameterWithNullableTypeDeclaration:
15+
enabled: false
16+
noExtends:
17+
classesAllowedToBeExtended:
18+
- BGalati\MonologSentryHandler\SentryHandler
19+
- Symfony\Component\HttpKernel\Bundle\Bundle
20+
- Symfony\Component\HttpKernel\DependencyInjection\Extension
1821

1922
includes:
2023
- vendor/ergebnis/phpstan-rules/rules.neon

0 commit comments

Comments
 (0)