Skip to content

Commit c864c4b

Browse files
authored
Merge pull request #2864 from tarlepp/chore(deps)/phpstan-major-upgrade
Chore(deps) - PHPStan major upgrade
2 parents d167f79 + bb0be2d commit c864c4b

File tree

7 files changed

+50
-60
lines changed

7 files changed

+50
-60
lines changed

phpstan.neon.dist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
parameters:
2-
level: max
2+
level: 9
33
paths:
44
- src
55
- tests
66
editorUrl: '%%file%%:%%line%%'
77
symfony:
8-
container_xml_path: var/cache/dev/App_KernelDevDebugContainer.xml
8+
containerXmlPath: var/cache/dev/App_KernelDevDebugContainer.xml
99
checkExplicitMixed: false
1010
ignoreErrors:
1111
-

src/Command/Utils/CreateDateDimensionEntitiesCommand.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,6 @@ private function createEntities(int $yearEnd, DateTime $dateStart, ProgressBar $
168168

169169
/**
170170
* Getter method for year start validator closure.
171-
*
172-
* @throws InvalidArgumentException
173171
*/
174172
private function validatorYearStart(): Closure
175173
{
@@ -186,8 +184,6 @@ private function validatorYearStart(): Closure
186184

187185
/**
188186
* Getter method for year end validator closure.
189-
*
190-
* @throws InvalidArgumentException
191187
*/
192188
private function validatorYearEnd(int $yearStart): Closure
193189
{

src/Entity/Traits/LogEntityTrait.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
use Doctrine\ORM\Mapping as ORM;
1616
use Symfony\Component\HttpFoundation\Request;
1717
use Symfony\Component\Serializer\Annotation\Groups;
18-
use Throwable;
1918

2019
/**
2120
* @package App\Entity\Traits
@@ -129,9 +128,6 @@ private function processRequestData(Request $request): void
129128
$this->agent = $request->headers->get('User-Agent') ?? '';
130129
}
131130

132-
/**
133-
* @throws Throwable
134-
*/
135131
#[ORM\PrePersist]
136132
private function processTimeAndDate(): void
137133
{

src/Rest/ControllerCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* @method ControllerInterface get(string $className)
2525
* @method IteratorAggregate<int, ControllerInterface> getAll()
2626
*
27-
* @template T<ControllerInterface>
27+
* @template T of ControllerInterface
2828
*/
2929
class ControllerCollection implements Countable
3030
{

tools/02_phpstan/composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
"php": "^8.3.0"
77
},
88
"require-dev": {
9-
"phpstan/phpstan": "1.12.10",
10-
"phpstan/phpstan-deprecation-rules": "1.2.1",
11-
"phpstan/phpstan-phpunit": "1.4.1",
12-
"phpstan/phpstan-symfony": "1.4.12",
9+
"phpstan/phpstan": "2.0.1",
10+
"phpstan/phpstan-deprecation-rules": "2.0.0",
11+
"phpstan/phpstan-phpunit": "2.0.1",
12+
"phpstan/phpstan-symfony": "2.0.0",
1313
"roave/security-advisories": "dev-latest"
1414
},
1515
"config": {

tools/02_phpstan/composer.lock

Lines changed: 38 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/07_phpinsights/composer.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)