Remove ignoring error in phpstan and psalm in favor of baseline

This commit is contained in:
2020-03-30 19:42:04 +03:00
parent febfc72e0b
commit 3fd96a2e48
5 changed files with 1149 additions and 25 deletions

View File

@@ -122,6 +122,10 @@ phpstan: APP_ENV=test
phpstan: APP_DEBUG=1
phpstan: cache
$(APP) phpstan analyse --configuration phpstan.neon $(if $(DEBUG),--debug -vvv)
phpstan-baseline: APP_ENV=test
phpstan-baseline: APP_DEBUG=1
phpstan-baseline: cache
$(APP) phpstan analyse --configuration phpstan.neon --generate-baseline
phpunit: APP_ENV=test
phpunit: APP_DEBUG=1
@@ -135,8 +139,11 @@ paratest:
requirements: APP_ENV=prod
requirements:
$(APP) requirements-checker
psalm:
$(APP) psalm --show-info=false
psalm-baseline:
$(APP) psalm --update-baseline --set-baseline=psalm-baseline.xml
doctrine-ensure-production-settings: APP_ENV=prod
doctrine-ensure-production-settings: APP_DEBUG=0

592
phpstan-baseline.neon Normal file
View File

@@ -0,0 +1,592 @@
parameters:
ignoreErrors:
-
message: "#^Method App\\\\Calendar\\\\Application\\\\StreamOverflowException\\:\\:fromKeys\\(\\) has parameter \\$keys with no value type specified in iterable type array\\.$#"
count: 1
path: src/Calendar/Application/StreamOverflowException.php
-
message: "#^Property App\\\\Calendar\\\\Domain\\\\DeletionReason\\:\\:\\$name type has no value type specified in iterable type array\\.$#"
count: 1
path: src/Calendar/Domain/DeletionReason.php
-
message: "#^Method App\\\\Car\\\\Controller\\\\CarController\\:\\:getEntityFormOptions\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: src/Car/Controller/CarController.php
-
message: "#^Method App\\\\Car\\\\Controller\\\\CarController\\:\\:renderTemplate\\(\\) has parameter \\$parameters with no value type specified in iterable type array\\.$#"
count: 1
path: src/Car/Controller/CarController.php
-
message: "#^Method App\\\\Car\\\\Controller\\\\CarController\\:\\:createSearchQueryBuilder\\(\\) has parameter \\$searchableFields with no value type specified in iterable type array\\.$#"
count: 1
path: src/Car/Controller/CarController.php
-
message: "#^Method App\\\\Car\\\\Controller\\\\ModelController\\:\\:createSearchQueryBuilder\\(\\) has parameter \\$searchableFields with no value type specified in iterable type array\\.$#"
count: 1
path: src/Car/Controller/ModelController.php
-
message: "#^Method App\\\\Car\\\\Controller\\\\RecommendationController\\:\\:renderTemplate\\(\\) has parameter \\$parameters with no value type specified in iterable type array\\.$#"
count: 1
path: src/Car/Controller/RecommendationController.php
-
message: "#^Property App\\\\Car\\\\Enum\\\\BodyType\\:\\:\\$name type has no value type specified in iterable type array\\.$#"
count: 1
path: src/Car/Enum/BodyType.php
-
message: "#^Property App\\\\Car\\\\Enum\\\\DriveWheelConfiguration\\:\\:\\$name type has no value type specified in iterable type array\\.$#"
count: 1
path: src/Car/Enum/DriveWheelConfiguration.php
-
message: "#^Property App\\\\Car\\\\Enum\\\\DriveWheelConfiguration\\:\\:\\$code type has no value type specified in iterable type array\\.$#"
count: 1
path: src/Car/Enum/DriveWheelConfiguration.php
-
message: "#^Property App\\\\Car\\\\Enum\\\\FuelType\\:\\:\\$name type has no value type specified in iterable type array\\.$#"
count: 1
path: src/Car/Enum/FuelType.php
-
message: "#^Property App\\\\Car\\\\Enum\\\\Transmission\\:\\:\\$name type has no value type specified in iterable type array\\.$#"
count: 1
path: src/Car/Enum/Transmission.php
-
message: "#^Property App\\\\Car\\\\Enum\\\\Transmission\\:\\:\\$code type has no value type specified in iterable type array\\.$#"
count: 1
path: src/Car/Enum/Transmission.php
-
message: "#^Method App\\\\Command\\\\Part\\\\PartCaseFindCommand\\:\\:getUniversal\\(\\) has parameter \\$partIds with no value type specified in iterable type array\\.$#"
count: 1
path: src/Command/Part/PartCaseFindCommand.php
-
message: "#^Method App\\\\Command\\\\Part\\\\PartCaseFindCommand\\:\\:getUniversal\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: src/Command/Part/PartCaseFindCommand.php
-
message: "#^Method App\\\\Command\\\\Part\\\\PartCaseFindCommand\\:\\:getMap\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: src/Command/Part/PartCaseFindCommand.php
-
message: "#^Method App\\\\Command\\\\Part\\\\PartCaseFindCommand\\:\\:getCars\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: src/Command/Part/PartCaseFindCommand.php
-
message: "#^Method App\\\\Controller\\\\EasyAdmin\\\\AbstractController\\:\\:getSubscribedServices\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: src/Controller/EasyAdmin/AbstractController.php
-
message: "#^Method App\\\\Controller\\\\EasyAdmin\\\\AbstractController\\:\\:redirectToEasyPath\\(\\) has parameter \\$parameters with no value type specified in iterable type array\\.$#"
count: 1
path: src/Controller/EasyAdmin/AbstractController.php
-
message: "#^Method App\\\\Controller\\\\EasyAdmin\\\\AbstractController\\:\\:generateEasyPath\\(\\) has parameter \\$parameters with no value type specified in iterable type array\\.$#"
count: 1
path: src/Controller/EasyAdmin/AbstractController.php
-
message: "#^Unable to resolve the template type T in call to method App\\\\Doctrine\\\\Registry\\:\\:repository\\(\\)$#"
count: 1
path: src/Controller/EasyAdmin/AbstractController.php
-
message: "#^Method App\\\\Controller\\\\EasyAdmin\\\\AbstractController\\:\\:event\\(\\) has parameter \\$event with no value type specified in iterable type Symfony\\\\Component\\\\EventDispatcher\\\\GenericEvent\\.$#"
count: 1
path: src/Controller/EasyAdmin/AbstractController.php
-
message: "#^Method App\\\\Controller\\\\EasyAdmin\\\\AbstractController\\:\\:createEntityForm\\(\\) has parameter \\$entityProperties with no value type specified in iterable type array\\.$#"
count: 1
path: src/Controller/EasyAdmin/AbstractController.php
-
message: "#^Method App\\\\Controller\\\\EasyAdmin\\\\AbstractController\\:\\:createSearchQueryBuilder\\(\\) has parameter \\$searchableFields with no value type specified in iterable type array\\.$#"
count: 1
path: src/Controller/EasyAdmin/AbstractController.php
-
message: "#^Method App\\\\Controller\\\\EasyAdmin\\\\AbstractController\\:\\:renderTemplate\\(\\) has parameter \\$parameters with no value type specified in iterable type array\\.$#"
count: 1
path: src/Controller/EasyAdmin/AbstractController.php
-
message: "#^Method App\\\\Controller\\\\EasyAdmin\\\\AbstractController\\:\\:findBy\\(\\) has parameter \\$searchableFields with no value type specified in iterable type array\\.$#"
count: 1
path: src/Controller/EasyAdmin/AbstractController.php
-
message: "#^Method App\\\\Controller\\\\EasyAdmin\\\\AbstractController\\:\\:findBy\\(\\) return type has no value type specified in iterable type Pagerfanta\\\\Pagerfanta\\.$#"
count: 1
path: src/Controller/EasyAdmin/AbstractController.php
-
message: "#^Method App\\\\Controller\\\\EasyAdmin\\\\AbstractController\\:\\:createEntityFormBuilder\\(\\) return type has no value type specified in iterable type Symfony\\\\Component\\\\Form\\\\FormBuilder\\.$#"
count: 1
path: src/Controller/EasyAdmin/AbstractController.php
-
message: "#^Method App\\\\Controller\\\\EasyAdmin\\\\EmployeeController\\:\\:renderTemplate\\(\\) has parameter \\$parameters with no value type specified in iterable type array\\.$#"
count: 1
path: src/Controller/EasyAdmin/EmployeeController.php
-
message: "#^Method App\\\\Controller\\\\EasyAdmin\\\\IncomeController\\:\\:renderTemplate\\(\\) has parameter \\$parameters with no value type specified in iterable type array\\.$#"
count: 1
path: src/Controller/EasyAdmin/IncomeController.php
-
message: "#^Method App\\\\Controller\\\\EasyAdmin\\\\MC\\\\EquipmentController\\:\\:createSearchQueryBuilder\\(\\) has parameter \\$searchableFields with no value type specified in iterable type array\\.$#"
count: 1
path: src/Controller/EasyAdmin/MC/EquipmentController.php
-
message: "#^Method App\\\\Controller\\\\EasyAdmin\\\\MotionController\\:\\:renderTemplate\\(\\) has parameter \\$parameters with no value type specified in iterable type array\\.$#"
count: 1
path: src/Controller/EasyAdmin/MotionController.php
-
message: "#^Method App\\\\Controller\\\\EasyAdmin\\\\OperandController\\:\\:getSubscribedServices\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: src/Controller/EasyAdmin/OperandController.php
-
message: "#^Method App\\\\Controller\\\\EasyAdmin\\\\OperandController\\:\\:renderTemplate\\(\\) has parameter \\$parameters with no value type specified in iterable type array\\.$#"
count: 1
path: src/Controller/EasyAdmin/OperandController.php
-
message: "#^Method App\\\\Controller\\\\EasyAdmin\\\\OperandTransactionController\\:\\:createEntityForm\\(\\) has parameter \\$entityProperties with no value type specified in iterable type array\\.$#"
count: 1
path: src/Controller/EasyAdmin/OperandTransactionController.php
-
message: "#^Method App\\\\Controller\\\\EasyAdmin\\\\OrderController\\:\\:renderTemplate\\(\\) has parameter \\$parameters with no value type specified in iterable type array\\.$#"
count: 1
path: src/Controller/EasyAdmin/OrderController.php
-
message: "#^Method App\\\\Controller\\\\EasyAdmin\\\\OrderController\\:\\:createSearchQueryBuilder\\(\\) has parameter \\$searchableFields with no value type specified in iterable type array\\.$#"
count: 1
path: src/Controller/EasyAdmin/OrderController.php
-
message: "#^Method App\\\\Controller\\\\EasyAdmin\\\\OrderItemController\\:\\:getSubscribedServices\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: src/Controller/EasyAdmin/OrderItemController.php
-
message: "#^Method App\\\\Controller\\\\EasyAdmin\\\\OrderItemController\\:\\:renderTemplate\\(\\) has parameter \\$parameters with no value type specified in iterable type array\\.$#"
count: 1
path: src/Controller/EasyAdmin/OrderItemController.php
-
message: "#^Method App\\\\Controller\\\\EasyAdmin\\\\OrderItemServiceController\\:\\:renderTemplate\\(\\) has parameter \\$parameters with no value type specified in iterable type array\\.$#"
count: 1
path: src/Controller/EasyAdmin/OrderItemServiceController.php
-
message: "#^Method App\\\\Controller\\\\EasyAdmin\\\\OrderItemServiceController\\:\\:createSearchQueryBuilder\\(\\) has parameter \\$searchableFields with no value type specified in iterable type array\\.$#"
count: 1
path: src/Controller/EasyAdmin/OrderItemServiceController.php
-
message: "#^Method App\\\\Controller\\\\EasyAdmin\\\\OrderNoteController\\:\\:renderTemplate\\(\\) has parameter \\$parameters with no value type specified in iterable type array\\.$#"
count: 1
path: src/Controller/EasyAdmin/OrderNoteController.php
-
message: "#^Method App\\\\Controller\\\\EasyAdmin\\\\PartController\\:\\:renderTemplate\\(\\) has parameter \\$parameters with no value type specified in iterable type array\\.$#"
count: 1
path: src/Controller/EasyAdmin/PartController.php
-
message: "#^Method App\\\\Controller\\\\EasyAdmin\\\\PartController\\:\\:createEntityFormBuilder\\(\\) return type has no value type specified in iterable type Symfony\\\\Component\\\\Form\\\\FormBuilder\\.$#"
count: 1
path: src/Controller/EasyAdmin/PartController.php
-
message: "#^Method App\\\\Controller\\\\EasyAdmin\\\\PartController\\:\\:createSearchQueryBuilder\\(\\) has parameter \\$searchableFields with no value type specified in iterable type array\\.$#"
count: 1
path: src/Controller/EasyAdmin/PartController.php
-
message: "#^Method App\\\\Controller\\\\EasyAdmin\\\\PersonController\\:\\:createSearchQueryBuilder\\(\\) has parameter \\$searchableFields with no value type specified in iterable type array\\.$#"
count: 1
path: src/Controller/EasyAdmin/PersonController.php
-
message: "#^Method App\\\\EasyAdmin\\\\Notify\\\\BalanceNotificationListener\\:\\:onPaymentCreated\\(\\) has parameter \\$event with no value type specified in iterable type App\\\\Event\\\\PaymentCreated\\.$#"
count: 1
path: src/EasyAdmin/Notify/BalanceNotificationListener.php
-
message: "#^Method App\\\\EasyAdmin\\\\Notify\\\\EntityNotificationListener\\:\\:onCreateOrUpdate\\(\\) has parameter \\$event with no value type specified in iterable type Symfony\\\\Component\\\\EventDispatcher\\\\GenericEvent\\.$#"
count: 1
path: src/EasyAdmin/Notify/EntityNotificationListener.php
-
message: "#^Method App\\\\EasyAdmin\\\\Notify\\\\EntityNotificationListener\\:\\:onStatusChanged\\(\\) has parameter \\$event with no value type specified in iterable type App\\\\Event\\\\OrderStatusChanged\\.$#"
count: 1
path: src/EasyAdmin/Notify/EntityNotificationListener.php
-
message: "#^Property App\\\\Entity\\\\Landlord\\\\Event\\:\\:\\$arguments type has no value type specified in iterable type array\\.$#"
count: 1
path: src/Entity/Landlord/Event.php
-
message: "#^Method App\\\\Entity\\\\Landlord\\\\Event\\:\\:__construct\\(\\) has parameter \\$arguments with no value type specified in iterable type array\\.$#"
count: 1
path: src/Entity/Landlord/Event.php
-
message: "#^Property App\\\\Entity\\\\Landlord\\\\MC\\\\Line\\:\\:\\$parts type has no value type specified in iterable type iterable\\.$#"
count: 1
path: src/Entity/Landlord/MC/Line.php
-
message: "#^Method App\\\\Entity\\\\Landlord\\\\PartCross\\:\\:getParts\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: src/Entity/Landlord/PartCross.php
-
message: "#^Method App\\\\Entity\\\\Tenant\\\\Order\\:\\:getItems\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: src/Entity/Tenant/Order.php
-
message: "#^Method App\\\\Entity\\\\Tenant\\\\Order\\:\\:getRootItems\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: src/Entity/Tenant/Order.php
-
message: "#^Method App\\\\Entity\\\\Tenant\\\\Order\\:\\:getSuspends\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: src/Entity/Tenant/Order.php
-
message: "#^Method App\\\\Entity\\\\Tenant\\\\OrderItemGroup\\:\\:getParts\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: src/Entity/Tenant/OrderItemGroup.php
-
message: "#^Property App\\\\Enum\\\\NoteType\\:\\:\\$name type has no value type specified in iterable type array\\.$#"
count: 1
path: src/Enum/NoteType.php
-
message: "#^Property App\\\\Enum\\\\OrderStatus\\:\\:\\$color type has no value type specified in iterable type array\\.$#"
count: 1
path: src/Enum/OrderStatus.php
-
message: "#^Property App\\\\Enum\\\\OrderStatus\\:\\:\\$name type has no value type specified in iterable type array\\.$#"
count: 1
path: src/Enum/OrderStatus.php
-
message: "#^Method App\\\\Event\\\\OrderAppointmentMade\\:\\:__construct\\(\\) has parameter \\$arguments with no value type specified in iterable type array\\.$#"
count: 1
path: src/Event/OrderAppointmentMade.php
-
message: "#^Method App\\\\Event\\\\PaymentCreated\\:\\:__construct\\(\\) has parameter \\$arguments with no value type specified in iterable type array\\.$#"
count: 1
path: src/Event/PaymentCreated.php
-
message: "#^Method App\\\\EventListener\\\\AccrueIncomePartsListener\\:\\:onIncomeAccrued\\(\\) has parameter \\$event with no value type specified in iterable type Symfony\\\\Component\\\\EventDispatcher\\\\GenericEvent\\.$#"
count: 1
path: src/EventListener/AccrueIncomePartsListener.php
-
message: "#^Method App\\\\EventListener\\\\BalanceListener\\:\\:onPaymentCreated\\(\\) has parameter \\$event with no value type specified in iterable type Symfony\\\\Component\\\\EventDispatcher\\\\GenericEvent\\.$#"
count: 1
path: src/EventListener/BalanceListener.php
-
message: "#^Method App\\\\EventListener\\\\EmployeeContractorListener\\:\\:onEmployeeCreatedOrFired\\(\\) has parameter \\$event with no value type specified in iterable type Symfony\\\\Component\\\\EventDispatcher\\\\GenericEvent\\.$#"
count: 1
path: src/EventListener/EmployeeContractorListener.php
-
message: "#^Method App\\\\EventListener\\\\EventsListener\\:\\:onEvent\\(\\) has parameter \\$event with no value type specified in iterable type Symfony\\\\Component\\\\EventDispatcher\\\\GenericEvent\\.$#"
count: 1
path: src/EventListener/EventsListener.php
-
message: "#^Method App\\\\EventListener\\\\OrderStatusListener\\:\\:inPartReserved\\(\\) has parameter \\$event with no value type specified in iterable type Symfony\\\\Component\\\\EventDispatcher\\\\GenericEvent\\.$#"
count: 1
path: src/EventListener/OrderStatusListener.php
-
message: "#^Method App\\\\EventListener\\\\PartCaseOnOrderCloseListener\\:\\:onOrderClosed\\(\\) has parameter \\$event with no value type specified in iterable type Symfony\\\\Component\\\\EventDispatcher\\\\GenericEvent\\.$#"
count: 1
path: src/EventListener/PartCaseOnOrderCloseListener.php
-
message: "#^Method App\\\\EventListener\\\\ReserveAccruedPartsListener\\:\\:onPartAccrued\\(\\) has parameter \\$event with no value type specified in iterable type Symfony\\\\Component\\\\EventDispatcher\\\\GenericEvent\\.$#"
count: 1
path: src/EventListener/ReserveAccruedPartsListener.php
-
message: "#^Method App\\\\EventListener\\\\StockpileListener\\:\\:onPartMove\\(\\) has parameter \\$event with no value type specified in iterable type Symfony\\\\Component\\\\EventDispatcher\\\\GenericEvent\\.$#"
count: 1
path: src/EventListener/StockpileListener.php
-
message: "#^Method App\\\\EventListener\\\\StockpileListener\\:\\:onPartOrderClose\\(\\) has parameter \\$event with no value type specified in iterable type Symfony\\\\Component\\\\EventDispatcher\\\\GenericEvent\\.$#"
count: 1
path: src/EventListener/StockpileListener.php
-
message: "#^Method App\\\\Form\\\\Model\\\\OrderTOService\\:\\:__construct\\(\\) has parameter \\$parts with no value type specified in iterable type array\\.$#"
count: 1
path: src/Form/Model/OrderTOService.php
-
message: "#^Call to function is_float\\(\\) with mixed will always evaluate to false\\.$#"
count: 1
path: src/Form/Transformer/DivisoredNumberToLocalizedStringTransformer.php
-
message: "#^Call to function is_int\\(\\) with mixed will always evaluate to false\\.$#"
count: 1
path: src/Form/Transformer/DivisoredNumberToLocalizedStringTransformer.php
-
message: "#^Parameter \\#1 \\$value \\(string\\) of method App\\\\Form\\\\Transformer\\\\DivisoredNumberToLocalizedStringTransformer\\:\\:reverseTransform\\(\\) should be contravariant with parameter \\$value \\(mixed\\) of method Symfony\\\\Component\\\\Form\\\\DataTransformerInterface\\:\\:reverseTransform\\(\\)$#"
count: 1
path: src/Form/Transformer/DivisoredNumberToLocalizedStringTransformer.php
-
message: "#^Property App\\\\Form\\\\Type\\\\CurrencyType\\:\\:\\$currencies type has no value type specified in iterable type Money\\\\Currencies\\.$#"
count: 1
path: src/Form/Type/CurrencyType.php
-
message: "#^Method App\\\\Form\\\\Type\\\\CurrencyType\\:\\:__construct\\(\\) has parameter \\$currencies with no value type specified in iterable type Money\\\\Currencies\\.$#"
count: 1
path: src/Form/Type/CurrencyType.php
-
message: "#^PHPDoc tag @var for variable \\$view has no value type specified in iterable type array\\.$#"
count: 1
path: src/Form/Type/OrderItemServiceType.php
-
message: "#^Parameter \\#1 \\$view of method Symfony\\\\Component\\\\Form\\\\AbstractType\\:\\:buildView\\(\\) expects Symfony\\\\Component\\\\Form\\\\FormView, array given\\.$#"
count: 1
path: src/Form/Type/OrderItemServiceType.php
-
message: "#^Method App\\\\Form\\\\Type\\\\WorkerType\\:\\:getPreferredOperands\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: src/Form/Type/WorkerType.php
-
message: "#^Call to function is_subclass_of\\(\\) with 'App\\\\\\\\Form\\\\\\\\Model\\\\\\\\Model' and string will always evaluate to true\\.$#"
count: 1
path: src/Form/TypeGuesser/EntityModelTypeGuesser.php
-
message: "#^Variable method call on Symfony\\\\Bridge\\\\Doctrine\\\\Form\\\\DoctrineOrmTypeGuesser\\.$#"
count: 1
path: src/Form/TypeGuesser/EntityModelTypeGuesser.php
-
message: "#^Method App\\\\Manager\\\\PartManager\\:\\:inOrders\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: src/Manager/PartManager.php
-
message: "#^Method App\\\\Manager\\\\StockpileManager\\:\\:actualize\\(\\) has parameter \\$values with no value type specified in iterable type array\\.$#"
count: 1
path: src/Manager/StockpileManager.php
-
message: "#^Method App\\\\Model\\\\DeficitPart\\:\\:__construct\\(\\) has parameter \\$orders with no value type specified in iterable type array\\.$#"
count: 1
path: src/Model/DeficitPart.php
-
message: "#^Method App\\\\Request\\\\EntityTransformer\\:\\:transform\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: src/Request/EntityTransformer.php
-
message: "#^Method App\\\\Request\\\\EntityTransformerArgumentValueResolver\\:\\:resolve\\(\\) return type has no value type specified in iterable type Generator\\.$#"
count: 1
path: src/Request/EntityTransformerArgumentValueResolver.php
-
message: "#^Method App\\\\Router\\\\ListeningRouterDecorator\\:\\:generate\\(\\) has parameter \\$parameters with no value type specified in iterable type array\\.$#"
count: 1
path: src/Router/ListeningRouterDecorator.php
-
message: "#^Method App\\\\Router\\\\ListeningRouterDecorator\\:\\:match\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: src/Router/ListeningRouterDecorator.php
-
message: "#^Method App\\\\Router\\\\ListeningRouterDecorator\\:\\:matchRequest\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: src/Router/ListeningRouterDecorator.php
-
message: "#^Method App\\\\Router\\\\PartExplorerRouteRefererListener\\:\\:onRouterPreGenerate\\(\\) has parameter \\$event with no value type specified in iterable type Symfony\\\\Component\\\\EventDispatcher\\\\GenericEvent\\.$#"
count: 1
path: src/Router/PartExplorerRouteRefererListener.php
-
message: "#^Method App\\\\Serializer\\\\MoneyNormalizer\\:\\:normalize\\(\\) has parameter \\$context with no value type specified in iterable type array\\.$#"
count: 1
path: src/Serializer/MoneyNormalizer.php
-
message: "#^Method App\\\\Tenant\\\\ConnectionSwitcher\\:\\:setParams\\(\\) has parameter \\$params with no value type specified in iterable type array\\.$#"
count: 1
path: src/Tenant/ConnectionSwitcher.php
-
message: "#^Property App\\\\Tenant\\\\EventListener\\\\TenantRelationListener\\:\\:\\$map type has no value type specified in iterable type array\\.$#"
count: 1
path: src/Tenant/EventListener/TenantRelationListener.php
-
message: "#^Method App\\\\Tenant\\\\EventListener\\\\TenantRelationListener\\:\\:__construct\\(\\) has parameter \\$map with no value type specified in iterable type array\\.$#"
count: 1
path: src/Tenant/EventListener/TenantRelationListener.php
-
message: "#^Call to method Symfony\\\\Component\\\\Console\\\\Input\\\\InputInterface\\:\\:hasOption\\(\\) with 'connection'\\|'db'\\|'em' will always evaluate to true\\.$#"
count: 1
path: src/Tenant/EventListener/TenantStateListener.php
-
message: "#^Method App\\\\Tenant\\\\EventListener\\\\TenantStateListener\\:\\:onRouterPreGenerate\\(\\) has parameter \\$event with no value type specified in iterable type Symfony\\\\Component\\\\EventDispatcher\\\\GenericEvent\\.$#"
count: 1
path: src/Tenant/EventListener/TenantStateListener.php
-
message: "#^Call to function assert\\(\\) with true will always evaluate to true\\.$#"
count: 1
path: src/Tenant/MetadataCompilerPass.php
-
message: "#^Instanceof between Doctrine\\\\Bundle\\\\DoctrineBundle\\\\Registry and Symfony\\\\Bridge\\\\Doctrine\\\\ManagerRegistry will always evaluate to true\\.$#"
count: 1
path: src/Tenant/MetadataCompilerPass.php
-
message: "#^Property App\\\\Tenant\\\\Tenant\\:\\:\\$identifier type has no value type specified in iterable type array\\.$#"
count: 1
path: src/Tenant/Tenant.php
-
message: "#^Property App\\\\Tenant\\\\Tenant\\:\\:\\$displayName type has no value type specified in iterable type array\\.$#"
count: 1
path: src/Tenant/Tenant.php
-
message: "#^Property App\\\\Tenant\\\\Tenant\\:\\:\\$requisites type has no value type specified in iterable type array\\.$#"
count: 1
path: src/Tenant/Tenant.php
-
message: "#^Method App\\\\Tenant\\\\Tenant\\:\\:getRequisites\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: src/Tenant/Tenant.php
-
message: "#^Method App\\\\Twig\\\\Extension\\\\AppExtension\\:\\:toQuery\\(\\) has parameter \\$entity with no value type specified in iterable type array\\.$#"
count: 1
path: src/Twig/Extension/AppExtension.php
-
message: "#^Method App\\\\Twig\\\\Extension\\\\AppExtension\\:\\:toQuery\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: src/Twig/Extension/AppExtension.php
-
message: "#^Property App\\\\User\\\\Entity\\\\User\\:\\:\\$roles type has no value type specified in iterable type array\\.$#"
count: 1
path: src/User/Entity/User.php
-
message: "#^Method App\\\\User\\\\Entity\\\\User\\:\\:__construct\\(\\) has parameter \\$roles with no value type specified in iterable type array\\.$#"
count: 1
path: src/User/Entity/User.php
-
message: "#^Method App\\\\User\\\\Entity\\\\User\\:\\:setRoles\\(\\) has parameter \\$roles with no value type specified in iterable type array\\.$#"
count: 1
path: src/User/Entity/User.php
-
message: "#^Property App\\\\User\\\\Entity\\\\UserCredentials\\:\\:\\$payloads type has no value type specified in iterable type array\\.$#"
count: 1
path: src/User/Entity/UserCredentials.php
-
message: "#^Method App\\\\User\\\\Entity\\\\UserCredentials\\:\\:__construct\\(\\) has parameter \\$payloads with no value type specified in iterable type array\\.$#"
count: 1
path: src/User/Entity/UserCredentials.php
-
message: "#^Method App\\\\User\\\\Entity\\\\UserCredentials\\:\\:getPayloads\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: src/User/Entity/UserCredentials.php
-
message: "#^Method App\\\\User\\\\Fixtures\\\\UserFixtures\\:\\:users\\(\\) return type has no value type specified in iterable type Generator\\.$#"
count: 1
path: src/User/Fixtures/UserFixtures.php
-
message: "#^Method App\\\\Tests\\\\Calendar\\\\StreamCollectionTest\\:\\:validData\\(\\) return type has no value type specified in iterable type Generator\\.$#"
count: 1
path: tests/Calendar/StreamCollectionTest.php
-
message: "#^Method App\\\\Tests\\\\Calendar\\\\StreamTest\\:\\:validData\\(\\) return type has no value type specified in iterable type Generator\\.$#"
count: 1
path: tests/Calendar/StreamTest.php
-
message: "#^Method App\\\\Tests\\\\Calendar\\\\StreamTest\\:\\:overflowData\\(\\) return type has no value type specified in iterable type Generator\\.$#"
count: 1
path: tests/Calendar/StreamTest.php
-
message: "#^Method App\\\\Tests\\\\SmokeTest\\:\\:anonymousPages\\(\\) return type has no value type specified in iterable type Generator\\.$#"
count: 1
path: tests/SmokeTest.php
-
message: "#^Method App\\\\Tests\\\\SmokeTest\\:\\:easyadmin\\(\\) return type has no value type specified in iterable type Generator\\.$#"
count: 1
path: tests/SmokeTest.php
-
message: "#^Method App\\\\Tests\\\\SmokeTest\\:\\:admin\\(\\) return type has no value type specified in iterable type Generator\\.$#"
count: 1
path: tests/SmokeTest.php

View File

@@ -4,6 +4,7 @@ includes:
- vendor/phpstan/phpstan-strict-rules/rules.neon
- vendor/phpstan/phpstan-symfony/extension.neon
- vendor/phpstan/phpstan/conf/bleedingEdge.neon
- phpstan-baseline.neon
parameters:
level: 7
@@ -13,14 +14,5 @@ parameters:
excludes_analyse:
- %rootDir%/../../../src/Command/TestCommand.php
- %rootDir%/../../../src/Controller/TestController.php
- %rootDir%/../../../src/Tenant/MetadataCompilerPass.php
- %rootDir%/../../../src/Form/TypeGuesser/EntityModelTypeGuesser.php
ignoreErrors:
- '#should be contravariant with parameter#'
- "#connection'|'db'|'em' will always evaluate to true#"
- "#no value type specified in iterable type#"
- "#with mixed will always evaluate to false#"
- "#Unable to resolve the template type T in call to method#"
- "#FormView, array given#"
symfony:
container_xml_path: %rootDir%/../../../var/cache/test/App_KernelTestDebugContainer.xml

548
psalm-baseline.xml Normal file
View File

@@ -0,0 +1,548 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="3.10.1@eeed5ecccc10131397f0eb7ee6da810c0be3a7fc">
<file src="src/Calendar/Ports/EasyAdmin/CalendarEntryController.php">
<PossiblyNullArgument occurrences="6">
<code>$dto-&gt;date</code>
<code>$dto-&gt;duration</code>
<code>$dto-&gt;id</code>
<code>$dto-&gt;date</code>
<code>$dto-&gt;duration</code>
<code>$dto-&gt;reason</code>
</PossiblyNullArgument>
<PossiblyNullReference occurrences="1">
<code>createQueryBuilder</code>
</PossiblyNullReference>
<PropertyNotSetInConstructor occurrences="1">
<code>CalendarEntryController</code>
</PropertyNotSetInConstructor>
</file>
<file src="src/Car/Controller/CarController.php">
<PossiblyFalseOperand occurrences="1">
<code>mb_strtolower($searchString)</code>
</PossiblyFalseOperand>
<PossiblyNullReference occurrences="2">
<code>getReference</code>
<code>getDisplayName</code>
</PossiblyNullReference>
</file>
<file src="src/Car/Controller/ModelController.php">
<PossiblyFalseOperand occurrences="1">
<code>mb_strtolower($item)</code>
</PossiblyFalseOperand>
</file>
<file src="src/Car/Controller/RecommendationController.php">
<PossiblyNullArgument occurrences="3">
<code>$model-&gt;service</code>
<code>$model-&gt;price</code>
<code>$model-&gt;worker</code>
</PossiblyNullArgument>
<PossiblyNullReference occurrences="1">
<code>createQueryBuilder</code>
</PossiblyNullReference>
<PropertyNotSetInConstructor occurrences="1">
<code>RecommendationController</code>
</PropertyNotSetInConstructor>
</file>
<file src="src/Car/Controller/RecommendationPartController.php">
<PossiblyNullArgument occurrences="5">
<code>$part</code>
<code>$model-&gt;price</code>
<code>$model-&gt;price</code>
<code>$model-&gt;part</code>
<code>$model-&gt;price</code>
</PossiblyNullArgument>
<PossiblyNullArrayOffset occurrences="1">
<code>$forms</code>
</PossiblyNullArrayOffset>
<PossiblyNullReference occurrences="1">
<code>getId</code>
</PossiblyNullReference>
<PropertyNotSetInConstructor occurrences="1">
<code>RecommendationPartController</code>
</PropertyNotSetInConstructor>
</file>
<file src="src/Car/Entity/Car.php">
<PossiblyFalseArgument occurrences="1">
<code>mb_convert_case($this-&gt;gosnomer, MB_CASE_UPPER, 'UTF-8')</code>
</PossiblyFalseArgument>
<PossiblyNullArgument occurrences="1">
<code>$type</code>
</PossiblyNullArgument>
<PossiblyNullReference occurrences="2">
<code>toString</code>
<code>$this-&gt;recommendations</code>
</PossiblyNullReference>
</file>
<file src="src/Car/Entity/Engine.php">
<PossiblyNullArgument occurrences="1">
<code>$this-&gt;name</code>
</PossiblyNullArgument>
</file>
<file src="src/Car/Entity/Model.php">
<PossiblyNullArgument occurrences="2">
<code>$this-&gt;manufacturer-&gt;getName()</code>
<code>$this-&gt;localizedName ?? $this-&gt;name</code>
</PossiblyNullArgument>
<PossiblyNullReference occurrences="1">
<code>getName</code>
</PossiblyNullReference>
</file>
<file src="src/Car/Entity/Recommendation.php">
<PossiblyNullReference occurrences="1">
<code>entityOrNull</code>
</PossiblyNullReference>
</file>
<file src="src/Car/Manager/RecommendationManager.php">
<PossiblyNullArgument occurrences="2">
<code>$recommendationPart-&gt;part</code>
<code>$worker</code>
</PossiblyNullArgument>
</file>
<file src="src/Command/Employee/MonthlySalaryCommand.php">
<PossiblyNullArgument occurrences="1">
<code>$person</code>
</PossiblyNullArgument>
</file>
<file src="src/Command/TestCommand.php">
<PossiblyFalseArgument occurrences="1">
<code>json_encode(['bla' =&gt; 'fuck'])</code>
</PossiblyFalseArgument>
</file>
<file src="src/Controller/EasyAdmin/EmployeeController.php">
<PossiblyNullReference occurrences="3">
<code>transactional</code>
<code>transactional</code>
<code>flush</code>
</PossiblyNullReference>
<PropertyNotSetInConstructor occurrences="1">
<code>EmployeeController</code>
</PropertyNotSetInConstructor>
</file>
<file src="src/Controller/EasyAdmin/ExpenseItemController.php">
<PossiblyNullArgument occurrences="1">
<code>$entity-&gt;getDescription()</code>
</PossiblyNullArgument>
<PossiblyNullReference occurrences="1">
<code>transactional</code>
</PossiblyNullReference>
<PropertyNotSetInConstructor occurrences="1">
<code>ExpenseItemController</code>
</PropertyNotSetInConstructor>
</file>
<file src="src/Controller/EasyAdmin/IncomeController.php">
<PossiblyNullArgument occurrences="4">
<code>$income-&gt;getId()</code>
<code>$income-&gt;getSupplier()</code>
<code>$income-&gt;getId()</code>
<code>$income-&gt;getSupplier()</code>
</PossiblyNullArgument>
<PossiblyNullReference occurrences="1">
<code>transactional</code>
</PossiblyNullReference>
<PropertyNotSetInConstructor occurrences="1">
<code>IncomeController</code>
</PropertyNotSetInConstructor>
</file>
<file src="src/Controller/EasyAdmin/IncomePartController.php">
<PossiblyNullArgument occurrences="2">
<code>$entity-&gt;getIncome()</code>
<code>$entity-&gt;getIncome()</code>
</PossiblyNullArgument>
<PossiblyNullReference occurrences="2">
<code>isEditable</code>
<code>getId</code>
</PossiblyNullReference>
</file>
<file src="src/Controller/EasyAdmin/MC/EquipmentController.php">
<PossiblyFalseOperand occurrences="1">
<code>mb_strtolower($searchString)</code>
</PossiblyFalseOperand>
</file>
<file src="src/Controller/EasyAdmin/OperandController.php">
<PossiblyFalseOperand occurrences="1">
<code>mb_strtolower($item)</code>
</PossiblyFalseOperand>
</file>
<file src="src/Controller/EasyAdmin/OperandTransactionController.php">
<PossiblyNullArgument occurrences="2">
<code>$model-&gt;description</code>
<code>$transaction-&gt;getId()</code>
</PossiblyNullArgument>
<PossiblyNullReference occurrences="1">
<code>transactional</code>
</PossiblyNullReference>
<PropertyNotSetInConstructor occurrences="1">
<code>OperandTransactionController</code>
</PropertyNotSetInConstructor>
</file>
<file src="src/Controller/EasyAdmin/OrderController.php">
<PossiblyFalseOperand occurrences="1">
<code>mb_strtolower($item)</code>
</PossiblyFalseOperand>
<PossiblyNullArgument occurrences="2">
<code>$order-&gt;getId()</code>
<code>$order-&gt;getId()</code>
</PossiblyNullArgument>
<PossiblyNullArrayOffset occurrences="1">
<code>$services</code>
</PossiblyNullArrayOffset>
<PossiblyNullReference occurrences="9">
<code>isFilled</code>
<code>flush</code>
<code>flush</code>
<code>flush</code>
<code>transactional</code>
<code>getRepository</code>
<code>getRepository</code>
<code>getRepository</code>
<code>transactional</code>
</PossiblyNullReference>
<PropertyNotSetInConstructor occurrences="1">
<code>OrderController</code>
</PropertyNotSetInConstructor>
</file>
<file src="src/Controller/EasyAdmin/OrderItemController.php">
<PossiblyNullReference occurrences="3">
<code>getRepository</code>
<code>getOrder</code>
<code>transactional</code>
</PossiblyNullReference>
</file>
<file src="src/Controller/EasyAdmin/OrderItemGroupController.php">
<PossiblyNullArgument occurrences="1">
<code>$model-&gt;name</code>
</PossiblyNullArgument>
</file>
<file src="src/Controller/EasyAdmin/OrderItemPartController.php">
<PossiblyNullArgument occurrences="2">
<code>$model-&gt;part</code>
<code>$model-&gt;price</code>
</PossiblyNullArgument>
<PropertyNotSetInConstructor occurrences="1">
<code>OrderItemPartController</code>
</PropertyNotSetInConstructor>
</file>
<file src="src/Controller/EasyAdmin/OrderItemServiceController.php">
<PossiblyFalseOperand occurrences="2">
<code>mb_strtolower($item)</code>
<code>mb_strtolower($searchString)</code>
</PossiblyFalseOperand>
<PossiblyNullArgument occurrences="3">
<code>$model-&gt;service</code>
<code>$model-&gt;price</code>
<code>$sortDirection</code>
</PossiblyNullArgument>
<PossiblyNullReference occurrences="2">
<code>getRepository</code>
<code>getConnection</code>
</PossiblyNullReference>
</file>
<file src="src/Controller/EasyAdmin/OrderPrintController.php">
<PossiblyNullArgument occurrences="1">
<code>$mileage</code>
</PossiblyNullArgument>
<PossiblyNullReference occurrences="2">
<code>flush</code>
<code>flush</code>
</PossiblyNullReference>
</file>
<file src="src/Controller/EasyAdmin/PartController.php">
<InvalidArgument occurrences="1">
<code>fn (Order $order): int =&gt; (int) $order-&gt;getId()</code>
</InvalidArgument>
<PossiblyFalseOperand occurrences="1">
<code>mb_strtolower(trim($searchString))</code>
</PossiblyFalseOperand>
<PossiblyNullArgument occurrences="9">
<code>$user-&gt;getId()</code>
<code>$user-&gt;getId()</code>
<code>$case-&gt;caseName</code>
<code>$entity-&gt;getNumber()</code>
<code>$entity-&gt;getManufacturer()-&gt;getName()</code>
<code>$entity-&gt;getName()</code>
<code>$model-&gt;manufacturer</code>
<code>$model-&gt;name</code>
<code>$model-&gt;number</code>
</PossiblyNullArgument>
<PossiblyNullReference occurrences="2">
<code>getRepository</code>
<code>getName</code>
</PossiblyNullReference>
<PropertyNotSetInConstructor occurrences="1">
<code>PartController</code>
</PropertyNotSetInConstructor>
</file>
<file src="src/Controller/EasyAdmin/PersonController.php">
<PossiblyFalseOperand occurrences="1">
<code>mb_strtolower($item)</code>
</PossiblyFalseOperand>
<PossiblyNullReference occurrences="1">
<code>getRepository</code>
</PossiblyNullReference>
</file>
<file src="src/Controller/TestController.php">
<PropertyNotSetInConstructor occurrences="1">
<code>TestController</code>
</PropertyNotSetInConstructor>
</file>
<file src="src/Doctrine/ORM/Mapping/NamespaceNamingStrategy.php">
<PossiblyNullArgument occurrences="2">
<code>$string</code>
<code>$string</code>
</PossiblyNullArgument>
</file>
<file src="src/Doctrine/ORM/Type/IdentifierType.php">
<PropertyNotSetInConstructor occurrences="2">
<code>$name</code>
<code>$class</code>
</PropertyNotSetInConstructor>
</file>
<file src="src/EasyAdmin/Notify/BalanceNotificationListener.php">
<PossiblyFalseArgument occurrences="1">
<code>json_encode($data, JSON_THROW_ON_ERROR)</code>
</PossiblyFalseArgument>
</file>
<file src="src/EasyAdmin/Notify/EntityNotificationListener.php">
<PossiblyFalseArgument occurrences="1">
<code>json_encode($data, JSON_THROW_ON_ERROR)</code>
</PossiblyFalseArgument>
</file>
<file src="src/Employee/Fixtures/EmployeeFixtures.php">
<PossiblyNullArgument occurrences="1">
<code>$person</code>
</PossiblyNullArgument>
<PropertyNotSetInConstructor occurrences="1">
<code>EmployeeFixtures</code>
</PropertyNotSetInConstructor>
</file>
<file src="src/Entity/Landlord/Organization.php">
<PropertyNotSetInConstructor occurrences="2">
<code>$name</code>
<code>$address</code>
</PropertyNotSetInConstructor>
</file>
<file src="src/Entity/Landlord/Part.php">
<PossiblyNullArgument occurrences="1">
<code>preg_replace('/[^a-zA-Z0-9]/', '', $number)</code>
</PossiblyNullArgument>
</file>
<file src="src/Entity/Landlord/PartCross.php">
<NullArgument occurrences="1">
<code>$this-&gt;parts</code>
</NullArgument>
</file>
<file src="src/Entity/Landlord/Person.php">
<PossiblyNullArgument occurrences="2">
<code>$this-&gt;lastname</code>
<code>$this-&gt;firstname</code>
</PossiblyNullArgument>
</file>
<file src="src/Entity/Tenant/Employee.php">
<PossiblyNullReference occurrences="2">
<code>getFullName</code>
<code>getFullName</code>
</PossiblyNullReference>
<PropertyNotSetInConstructor occurrences="1">
<code>$ratio</code>
</PropertyNotSetInConstructor>
</file>
<file src="src/Entity/Tenant/Income.php">
<PossiblyNullArgument occurrences="1">
<code>$this-&gt;getId()</code>
</PossiblyNullArgument>
<PossiblyNullReference occurrences="1">
<code>format</code>
</PossiblyNullReference>
</file>
<file src="src/Entity/Tenant/MotionIncome.php">
<PossiblyNullArgument occurrences="3">
<code>$incomePart-&gt;getIncome()-&gt;getId()</code>
<code>$incomePart-&gt;getPart()</code>
<code>$incomePart-&gt;getQuantity()</code>
</PossiblyNullArgument>
<PossiblyNullReference occurrences="1">
<code>getId</code>
</PossiblyNullReference>
</file>
<file src="src/Entity/Tenant/MotionOrder.php">
<PossiblyNullArgument occurrences="1">
<code>$order-&gt;getId()</code>
</PossiblyNullArgument>
</file>
<file src="src/Entity/Tenant/Order.php">
<PossiblyNullArgument occurrences="1">
<code>$itemDiscount</code>
</PossiblyNullArgument>
<PossiblyNullReference occurrences="2">
<code>isEqual</code>
<code>multiply</code>
</PossiblyNullReference>
</file>
<file src="src/Entity/Tenant/OrderItem.php">
<PossiblyNullArgument occurrences="1">
<code>$this-&gt;discount()</code>
</PossiblyNullArgument>
</file>
<file src="src/Entity/Tenant/OrderItemPart.php">
<PossiblyNullArgument occurrences="1">
<code>$this-&gt;discount()</code>
</PossiblyNullArgument>
</file>
<file src="src/Entity/Tenant/OrderItemService.php">
<PossiblyNullArgument occurrences="1">
<code>$this-&gt;discount()</code>
</PossiblyNullArgument>
</file>
<file src="src/EventListener/EmployeeContractorListener.php">
<PossiblyNullReference occurrences="1">
<code>setContractor</code>
</PossiblyNullReference>
</file>
<file src="src/EventListener/EventsListener.php">
<DeprecatedMethod occurrences="1">
<code>isEntity</code>
</DeprecatedMethod>
</file>
<file src="src/EventListener/PartCaseOnOrderCloseListener.php">
<PossiblyNullArgument occurrences="1">
<code>$part-&gt;getId()</code>
</PossiblyNullArgument>
</file>
<file src="src/EventListener/StockpileListener.php">
<PossiblyNullArrayOffset occurrences="1">
<code>$values</code>
</PossiblyNullArrayOffset>
</file>
<file src="src/Form/Model/OperandTransactionModel.php">
<PropertyNotSetInConstructor occurrences="2">
<code>$recipient</code>
<code>$wallet</code>
</PropertyNotSetInConstructor>
</file>
<file src="src/Form/Model/OrderGroup.php">
<PropertyNotSetInConstructor occurrences="1">
<code>OrderGroup</code>
</PropertyNotSetInConstructor>
</file>
<file src="src/Form/Model/OrderItemModel.php">
<PropertyNotSetInConstructor occurrences="1">
<code>$order</code>
</PropertyNotSetInConstructor>
</file>
<file src="src/Form/Model/OrderPart.php">
<PropertyNotSetInConstructor occurrences="1">
<code>OrderPart</code>
</PropertyNotSetInConstructor>
</file>
<file src="src/Form/Model/OrderService.php">
<PropertyNotSetInConstructor occurrences="2">
<code>$worker</code>
<code>OrderService</code>
</PropertyNotSetInConstructor>
</file>
<file src="src/Form/Transformer/DivisoredNumberToLocalizedStringTransformer.php">
<PossiblyNullArgument occurrences="1">
<code>preg_replace('/\s/', '', $value)</code>
</PossiblyNullArgument>
</file>
<file src="src/Form/Type/WorkerType.php">
<PossiblyNullArgument occurrences="1">
<code>$operand-&gt;getId()</code>
</PossiblyNullArgument>
</file>
<file src="src/Income/Fixtures/IncomeFixtures.php">
<PropertyNotSetInConstructor occurrences="1">
<code>IncomeFixtures</code>
</PropertyNotSetInConstructor>
</file>
<file src="src/Income/Fixtures/IncomePartFixtures.php">
<PropertyNotSetInConstructor occurrences="1">
<code>IncomePartFixtures</code>
</PropertyNotSetInConstructor>
</file>
<file src="src/Manager/DeficitManager.php">
<InvalidNullableReturnType occurrences="1">
<code>object</code>
</InvalidNullableReturnType>
<NullableReturnStatement occurrences="1">
<code>$em-&gt;getReference(Order::class, $id)</code>
</NullableReturnStatement>
<PossiblyNullReference occurrences="1">
<code>getId</code>
</PossiblyNullReference>
</file>
<file src="src/Manager/OrderManager.php">
<PossiblyNullArgument occurrences="4">
<code>$payment-&gt;getDescription()</code>
<code>$order-&gt;getId()</code>
<code>$order-&gt;getId()</code>
<code>$order-&gt;getId()</code>
</PossiblyNullArgument>
</file>
<file src="src/Manager/PartManager.php">
<PossiblyNullReference occurrences="1">
<code>removePart</code>
</PossiblyNullReference>
</file>
<file src="src/Manager/SupplierManager.php">
<PossiblyNullArgument occurrences="1">
<code>$income-&gt;getAccruedAmount()</code>
</PossiblyNullArgument>
</file>
<file src="src/Manufacturer/Entity/Manufacturer.php">
<PropertyNotSetInConstructor occurrences="1">
<code>$logo</code>
</PropertyNotSetInConstructor>
</file>
<file src="src/Order/Fixtures/OrderFixtures.php">
<PossiblyNullArgument occurrences="1">
<code>$part</code>
</PossiblyNullArgument>
<PropertyNotSetInConstructor occurrences="1">
<code>OrderFixtures</code>
</PropertyNotSetInConstructor>
</file>
<file src="src/Request/EntityTransformerArgumentValueResolver.php">
<PossiblyNullArgument occurrences="2">
<code>$argument-&gt;getType()</code>
<code>$argument-&gt;getType()</code>
</PossiblyNullArgument>
</file>
<file src="src/State.php">
<PropertyNotSetInConstructor occurrences="2">
<code>$tenant</code>
<code>$user</code>
</PropertyNotSetInConstructor>
</file>
<file src="src/User/Controller/UserController.php">
<PossiblyNullReference occurrences="1">
<code>get</code>
</PossiblyNullReference>
<PropertyNotSetInConstructor occurrences="1">
<code>UserController</code>
</PropertyNotSetInConstructor>
</file>
<file src="src/User/Entity/UserCredentials.php">
<PropertyNotSetInConstructor occurrences="1">
<code>$expiredAt</code>
</PropertyNotSetInConstructor>
</file>
<file src="src/User/Fixtures/UserFixtures.php">
<PropertyNotSetInConstructor occurrences="1">
<code>UserFixtures</code>
</PropertyNotSetInConstructor>
</file>
<file src="src/User/Fixtures/UserRelationFixtures.php">
<PropertyNotSetInConstructor occurrences="1">
<code>UserRelationFixtures</code>
</PropertyNotSetInConstructor>
</file>
<file src="tests/SmokeTest.php">
<PossiblyInvalidArgument occurrences="1">
<code>self::ADDITIONAL_QUERY[$entity][$action] ?? []</code>
</PossiblyInvalidArgument>
<PossiblyNullReference occurrences="1">
<code>get</code>
</PossiblyNullReference>
</file>
</files>

View File

@@ -9,6 +9,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
errorBaseline="psalm-baseline.xml"
>
<projectFiles>
<directory name="src"/>
@@ -21,22 +22,6 @@
</projectFiles>
<issueHandlers>
<InvalidArgument errorLevel="info"/>
<MissingParamType errorLevel="info"/>
<MissingDependency errorLevel="info"/>
<PropertyNotSetInConstructor errorLevel="info"/>
<DeprecatedClass errorLevel="info"/>
<DeprecatedMethod errorLevel="info"/>
<PossiblyNullArrayOffset errorLevel="info"/>
<PossiblyNullOperand errorLevel="info"/>
<PossiblyNullReference errorLevel="info"/>
<PossiblyFalseOperand errorLevel="info"/>
<ImpureArgument errorLevel="info"/>
<InternalMethod>
<errorLevel type="suppress">
<referencedMethod name="Doctrine\DBAL\Types\Type::__construct"/>