Skip to content

feat: migrate PHPStan 1 => 2 #494

feat: migrate PHPStan 1 => 2

feat: migrate PHPStan 1 => 2 #494

Triggered via pull request December 23, 2025 13:58
Status Failure
Total duration 1m 8s
Artifacts

ci.yml

on: pull_request
Matrix: phpunit
Fit to window
Zoom out
Zoom in

Annotations

10 errors
PHPStan: src/DependencyInjection/Configuration.php#L90
Call to function assert() with true will always evaluate to true.
PHPStan: src/DependencyInjection/Configuration.php#L36
Instanceof between Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition<Symfony\Component\Config\Definition\Builder\TreeBuilder<string>> and Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition will always evaluate to true.
PHPStan: src/DependencyInjection/Configuration.php#L36
Call to function assert() with true will always evaluate to true.
PHPStan: src/DependencyInjection/BazingaGeocoderExtension.php#L107
Parameter #2 $config of method Bazinga\GeocoderBundle\DependencyInjection\BazingaGeocoderExtension::configureProviderPlugins() expects array<mixed>, mixed given.
PHPStan: src/DependencyInjection/BazingaGeocoderExtension.php#L106
Binary operation "." between 'bazinga_geocoder…' and mixed results in an error.
PHPStan: src/DependencyInjection/BazingaGeocoderExtension.php#L102
Parameter #1 $options of method Bazinga\GeocoderBundle\DependencyInjection\BazingaGeocoderExtension::findReferences() expects array<mixed>, mixed given.
PHPStan: src/DependencyInjection/BazingaGeocoderExtension.php#L98
Parameter #1 $options of method Bazinga\GeocoderBundle\DependencyInjection\BazingaGeocoderExtension::findReferences() expects array<mixed>, mixed given.
PHPStan: src/DependencyInjection/BazingaGeocoderExtension.php#L0
Ignored error pattern #^Parameter \#2 \$config of method Bazinga\\GeocoderBundle\\DependencyInjection\\BazingaGeocoderExtension\:\:configureProviderPlugins\(\) expects array, mixed given\.$# in path /home/runner/work/BazingaGeocoderBundle/BazingaGeocoderBundle/src/DependencyInjection/BazingaGeocoderExtension.php was not matched in reported errors.
PHPStan: src/DependencyInjection/BazingaGeocoderExtension.php#L0
Ignored error pattern #^Parameter \#1 \$options of method Bazinga\\GeocoderBundle\\DependencyInjection\\BazingaGeocoderExtension\:\:findReferences\(\) expects array\<int\|string, mixed\>, mixed given\.$# in path /home/runner/work/BazingaGeocoderBundle/BazingaGeocoderBundle/src/DependencyInjection/BazingaGeocoderExtension.php was not matched in reported errors.
PHPStan: src/DataCollector/GeocoderDataCollector.php#L98
Method Bazinga\GeocoderBundle\DataCollector\GeocoderDataCollector::getProviderQueries() should return list<array{query: Geocoder\Query\Query, queryString: string, duration: float, providerName: string, result: mixed, resultCount: int}> but returns array.