Skip to content

Commit fe3e2b5

Browse files
authored
Raise PHPStan's level from 5 to 6 (#573)
1 parent d01b557 commit fe3e2b5

File tree

3 files changed

+3
-17
lines changed

3 files changed

+3
-17
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ci: cs-full-check phpstan phpunit-coverage
66
lint: cs-full-check phpstan
77

88
phpstan:
9-
sh -c "${QA_DOCKER_COMMAND} phpstan analyse --configuration phpstan.neon --level 5 ."
9+
sh -c "${QA_DOCKER_COMMAND} phpstan analyse --configuration phpstan.neon --level 6 ."
1010

1111
cs:
1212
sh -c "${QA_DOCKER_COMMAND} php-cs-fixer fix -vvv --diff"

Tests/Form/Handler/AuthorizeFormHandlerTest.php

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -29,29 +29,14 @@
2929
*/
3030
class AuthorizeFormHandlerTest extends \PHPUnit\Framework\TestCase
3131
{
32-
/**
33-
* @var \PHPUnit_Framework_MockObject_MockObject|FormInterface
34-
*/
3532
protected $form;
3633

37-
/**
38-
* @var \PHPUnit_Framework_MockObject_MockObject|Request|RequestStack
39-
*/
4034
protected $request;
4135

42-
/**
43-
* @var \PHPUnit_Framework_MockObject_MockObject|ParameterBag
44-
*/
4536
protected $requestQuery;
4637

47-
/**
48-
* @var \PHPUnit_Framework_MockObject_MockObject|ParameterBag
49-
*/
5038
protected $requestRequest;
5139

52-
/**
53-
* @var \PHPUnit_Framework_MockObject_MockObject|ContainerInterface
54-
*/
5540
protected $container;
5641

5742
/**
@@ -65,7 +50,6 @@ public function setUp()
6550
->disableOriginalConstructor()
6651
->getMock()
6752
;
68-
/** @var \PHPUnit_Framework_MockObject_MockObject&Request $request */
6953
$request = $this->getMockBuilder(Request::class)
7054
->disableOriginalConstructor()
7155
->getMock()

phpstan.neon

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,5 @@ parameters:
1313
# how to avoid excluding these?
1414
- '#Symfony\\Component\\Config\\Definition\\Builder\\NodeParentInterface::scalarNode()#'
1515
- '#Symfony\\Component\\Config\\Definition\\Builder\\NodeParentInterface::end()#'
16+
# expected
17+
- '#Parameter \#2 $requestStack of class FOS\OAuthServerBundle\Form\Handler\AuthorizeFormHandler constructor expects Symfony\Component\HttpFoundation\Request|Symfony\Component\HttpFoundation\RequestStack|null, stdClass given.#'

0 commit comments

Comments
 (0)