Skip to content

Commit 7914d6b

Browse files
committed
Fix SCA
1 parent f777a32 commit 7914d6b

File tree

4 files changed

+32
-197
lines changed

4 files changed

+32
-197
lines changed

phpstan-baseline.neon

Lines changed: 0 additions & 196 deletions
This file was deleted.

phpstan-baseline.php

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?php declare(strict_types = 1);
2+
3+
$ignoreErrors = [];
4+
$ignoreErrors[] = [
5+
// identifier: missingType.generics
6+
'message' => '#^Method Bazinga\\\\GeocoderBundle\\\\DependencyInjection\\\\Configuration\\:\\:createClientPluginNode\\(\\) return type with generic class Symfony\\\\Component\\\\Config\\\\Definition\\\\Builder\\\\ArrayNodeDefinition does not specify its types\\: TParent$#',
7+
'count' => 1,
8+
'path' => __DIR__ . '/src/DependencyInjection/Configuration.php',
9+
];
10+
$ignoreErrors[] = [
11+
// identifier: missingType.generics
12+
'message' => '#^Method Bazinga\\\\GeocoderBundle\\\\DependencyInjection\\\\Configuration\\:\\:getConfigTreeBuilder\\(\\) return type with generic class Symfony\\\\Component\\\\Config\\\\Definition\\\\Builder\\\\TreeBuilder does not specify its types\\: T$#',
13+
'count' => 1,
14+
'path' => __DIR__ . '/src/DependencyInjection/Configuration.php',
15+
];
16+
$ignoreErrors[] = [
17+
// identifier: missingType.generics
18+
'message' => '#^Method Bazinga\\\\GeocoderBundle\\\\DependencyInjection\\\\Configuration\\:\\:getProvidersNode\\(\\) return type with generic class Symfony\\\\Component\\\\Config\\\\Definition\\\\Builder\\\\ArrayNodeDefinition does not specify its types\\: TParent$#',
19+
'count' => 1,
20+
'path' => __DIR__ . '/src/DependencyInjection/Configuration.php',
21+
];
22+
$ignoreErrors[] = [
23+
// identifier: missingType.generics
24+
'message' => '#^PHPDoc tag @var for variable \\$pluginList contains generic class Symfony\\\\Component\\\\Config\\\\Definition\\\\Builder\\\\ArrayNodeDefinition but does not specify its types\\: TParent$#',
25+
'count' => 1,
26+
'path' => __DIR__ . '/src/DependencyInjection/Configuration.php',
27+
];
28+
29+
return ['parameters' => ['ignoreErrors' => $ignoreErrors]];
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
includes:
2-
- phpstan-baseline.neon
2+
- phpstan-baseline.php
33

44
parameters:
55
bootstrapFiles:

tests/baseline-ignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,5 @@
8181
%Geocoder\\ProviderAggregator::__construct\(\): Implicitly marking parameter \$decider as nullable is deprecated, the explicit nullable type must be used instead%
8282
%Since symfony/var-exporter 7.3: The "Symfony\\Component\\VarExporter\\LazyGhostTrait" trait is deprecated, use native lazy objects instead.%
8383
%Method "Http\\Promise\\Promise::wait\(\)" might add " Resolved value, null if \$unwrap is set to false" as a native return type declaration in the future. Do the same in implementation "Geocoder\\Plugin\\Promise\\GeocoderFulfilledPromise" now to avoid errors or add an explicit @return annotation to suppress this message.%
84+
%The "Symfony\\Component\\HttpKernel\\Kernel::setAnnotatedClassCache\(\)" method is considered internal. It may change without further notice. You should not extend it from "Bazinga\\GeocoderBundle\\Tests\\Functional\\CustomTestKernel".%
85+
%The "report_fields_where_declared" configuration option is deprecated and will be removed in DoctrineBundle 3.0. When using ORM 3, report_fields_where_declared will always be true%

0 commit comments

Comments
 (0)