Skip to content

Commit 3279971

Browse files
committed
update phpstan
1 parent a36aaa4 commit 3279971

102 files changed

Lines changed: 136 additions & 233 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"phpunit/phpunit": "^10.0",
5858
"guzzlehttp/guzzle": "^7.2.0",
5959
"squizlabs/php_codesniffer": "^3.2.0",
60-
"phpstan/phpstan": "^1.10",
60+
"phpstan/phpstan": "^2.2",
6161
"nette/caching": "^3.0.0",
6262
"nikic/php-parser": "^4.19.1",
6363
"phpmd/phpmd": "^2.6.0",

config/services.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ services:
1212
calls:
1313
- ['registerHandler', [ 'json', ['@my.secure_handler', 'createResponse'] ] ]
1414

15-
PhpList\Core\Security\Authentication:
15+
PhpList\Core\Domain\Identity\Service\Authentication:
1616
autowire: true
1717
autoconfigure: true
1818

src/Common/Controller/BaseController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
namespace PhpList\RestBundle\Common\Controller;
66

77
use PhpList\Core\Domain\Identity\Model\Administrator;
8-
use PhpList\Core\Security\Authentication;
8+
use PhpList\Core\Domain\Identity\Service\Authentication;
99
use PhpList\RestBundle\Common\Validator\RequestValidator;
1010
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
1111
use Symfony\Component\HttpFoundation\Request;
1212
use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException;
1313

14-
/** @SuppressWarnings(PHPMD.NumberOfChildren) */
14+
/** @SuppressWarnings("PHPMD.NumberOfChildren") */
1515
abstract class BaseController extends AbstractController
1616
{
1717
protected Authentication $authentication;

src/Common/EventListener/ExceptionListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
use PhpList\Core\Domain\Messaging\Exception\AttachmentFileNotFoundException;
1010
use PhpList\Core\Domain\Messaging\Exception\MessageNotReceivedException;
1111
use PhpList\Core\Domain\Messaging\Exception\SubscriberNotFoundException;
12-
use PhpList\Core\Domain\Subscription\Exception\AttributeDefinitionCreationException;
12+
use PhpList\Core\Domain\Common\Exception\AttributeDefinitionCreationException;
1313
use PhpList\Core\Domain\Subscription\Exception\SubscriptionCreationException;
1414
use PhpList\Core\Domain\Common\Exception\InvalidUploadException;
1515
use PhpList\Core\Domain\Common\Exception\MissingUploadException;

src/Common/Serializer/CursorPaginationNormalizer.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class CursorPaginationNormalizer implements NormalizerInterface
1111
{
1212
/**
1313
* @param CursorPaginationResult $object
14-
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
14+
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
1515
*/
1616
public function normalize($object, string $format = null, array $context = []): array
1717
{
@@ -32,15 +32,15 @@ public function normalize($object, string $format = null, array $context = []):
3232
}
3333

3434
/**
35-
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
35+
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
3636
*/
3737
public function supportsNormalization($data, string $format = null): bool
3838
{
3939
return $data instanceof CursorPaginationResult;
4040
}
4141

4242
/**
43-
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
43+
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
4444
*/
4545
public function getSupportedTypes(?string $format): array
4646
{

src/Configuration/Controller/ConfigController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use PhpList\Core\Domain\Configuration\Model\Config;
1111
use PhpList\Core\Domain\Configuration\Service\Manager\ConfigManager;
1212
use PhpList\Core\Domain\Identity\Model\PrivilegeFlag;
13-
use PhpList\Core\Security\Authentication;
13+
use PhpList\Core\Domain\Identity\Service\Authentication;
1414
use PhpList\RestBundle\Common\Controller\BaseController;
1515
use PhpList\RestBundle\Common\Validator\RequestValidator;
1616
use PhpList\RestBundle\Configuration\Request\CreateConfigRequest;

src/Configuration/Serializer/ConfigNormalizer.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class ConfigNormalizer implements NormalizerInterface
2323
/**
2424
* Normalizes a configuration item.
2525
*
26-
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
26+
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
2727
*/
2828
public function normalize($object, string $format = null, array $context = []): array
2929
{
@@ -42,15 +42,15 @@ public function normalize($object, string $format = null, array $context = []):
4242
/**
4343
* Checks whether the value can be normalized.
4444
*
45-
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
45+
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
4646
*/
4747
public function supportsNormalization($data, string $format = null): bool
4848
{
4949
return $data instanceof Config;
5050
}
5151

5252
/**
53-
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
53+
* @SuppressWarnings("PHPMD.UnusedFormalParameter")
5454
*/
5555
public function getSupportedTypes(?string $format): array
5656
{

src/Identity/Controller/AdminAttributeDefinitionController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
use PhpList\Core\Domain\Common\Model\Filter\PaginatedFilter;
1010
use PhpList\Core\Domain\Identity\Model\AdminAttributeDefinition;
1111
use PhpList\Core\Domain\Identity\Service\Manager\AdminAttributeDefinitionManager;
12-
use PhpList\Core\Security\Authentication;
12+
use PhpList\Core\Domain\Identity\Service\Authentication;
1313
use PhpList\RestBundle\Common\Controller\BaseController;
1414
use PhpList\RestBundle\Common\Service\Provider\PaginatedDataProvider;
1515
use PhpList\RestBundle\Common\Validator\RequestValidator;

src/Identity/Controller/AdminAttributeValueController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
use PhpList\Core\Domain\Identity\Model\AdminAttributeDefinition;
1212
use PhpList\Core\Domain\Identity\Model\AdminAttributeValue;
1313
use PhpList\Core\Domain\Identity\Service\Manager\AdminAttributeManager;
14-
use PhpList\Core\Security\Authentication;
14+
use PhpList\Core\Domain\Identity\Service\Authentication;
1515
use PhpList\RestBundle\Common\Controller\BaseController;
1616
use PhpList\RestBundle\Common\Service\Provider\PaginatedDataProvider;
1717
use PhpList\RestBundle\Common\Validator\RequestValidator;

src/Identity/Controller/AdministratorController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
use PhpList\Core\Domain\Common\Model\Filter\PaginatedFilter;
1010
use PhpList\Core\Domain\Identity\Model\Administrator;
1111
use PhpList\Core\Domain\Identity\Service\Manager\AdministratorManager;
12-
use PhpList\Core\Security\Authentication;
12+
use PhpList\Core\Domain\Identity\Service\Authentication;
1313
use PhpList\RestBundle\Common\Controller\BaseController;
1414
use PhpList\RestBundle\Common\Service\Provider\PaginatedDataProvider;
1515
use PhpList\RestBundle\Common\Validator\RequestValidator;

0 commit comments

Comments
 (0)