@@ -60,3 +60,5 @@ phpstan.neon
/.php-cs-fixer.php
/.php-cs-fixer.cache
###< friendsofphp/php-cs-fixer ###
+
+phpstan.json
@@ -17,6 +17,7 @@ before_script:
static_analysis:
script:
- php vendor/bin/phpstan analyse -c phpstan.neon.dist --error-format gitlab > phpstan.json # Display code quality in MR
+ - php vendor/bin/phpstan analyse -c phpstan.neon.dist
artifacts:
when: always
reports:
@@ -1,24 +0,0 @@
-[
- {
- "description": "PHPDoc tag @param references unknown parameter: $price_min",
- "fingerprint": "a01fcf3b22321902df6137f7c06fa593d7b805397a90357e55ea87d53b3fbb02",
- "severity": "major",
- "location": {
- "path": "src/Entity/Public/PublicEvent.php",
- "lines": {
- "begin": 523
- }
- },
- "description": "PHPDoc tag @param references unknown parameter: $price_max",
- "fingerprint": "16c23a8222383c8eab1118fa7cd936e1b023cc8af2118927cf67f7fc72e7e4a1",
- "begin": 541
-]
@@ -26,11 +26,11 @@ class LicenceCmfExporter extends BaseExporter implements ExporterInterface
public const LICENCE_CMF_COLOR = [0 => '931572', 1 => 'C2981A', 2 => '003882', 3 => '27AAE1', 4 => '2BB673'];
public function __construct(
- private OrganizationRepository $organizationRepository
+ private readonly OrganizationRepository $organizationRepository
) {
}
- public function support($exportRequest): bool
+ public function support(ExportRequest $exportRequest): bool
{
return $exportRequest instanceof LicenceCmfOrganizationER;