- Issue created by @tim.plunkett
- Merge request !10985Issue #3501836: Resolve type issues caught by PHPStan usage in Project Browser β (Open) created by tim.plunkett
π Increase PHPStan level and ensure issues exist for each entry in the baseline Active increases the PHPStan level in Project Browser and surfaces three errors caused by Package Manager.
Remove the Package Manager specific ignores in Project Browser
Run PHPStan
------ --------------------------------------------------------------------------------------------------------------
Line tests/src/Kernel/CoreNotUpdatedValidatorTest.php
------ --------------------------------------------------------------------------------------------------------------
31 Method Drupal\fixture_manipulator\FixtureManipulator::commitChanges() invoked with 0 parameters, 1 required.
πͺͺ arguments.count
76 Call to an undefined method object::setCorePackageVersion().
πͺͺ method.notFound
87 Dead catch - Drupal\package_manager\Exception\StageEventException is never thrown in the try block.
πͺͺ catch.neverThrown
------ --------------------------------------------------------------------------------------------------------------
------ --------------------------------------------------------------------------------------------------------------
Line tests/src/Kernel/InstallerTest.php
------ --------------------------------------------------------------------------------------------------------------
47 Method Drupal\fixture_manipulator\FixtureManipulator::commitChanges() invoked with 0 parameters, 1 required.
πͺͺ arguments.count
------ --------------------------------------------------------------------------------------------------------------
------ --------------------------------------------------------------------------------------------------------------
Line tests/src/Kernel/PackageNotInstalledValidatorTest.php
------ --------------------------------------------------------------------------------------------------------------
66 Method Drupal\fixture_manipulator\FixtureManipulator::commitChanges() invoked with 0 parameters, 1 required.
πͺͺ arguments.count
self::
to static::
in \Drupal\fixture_manipulator\FixtureManipulator
and subclasses\Drupal\Tests\package_manager\Traits\FixtureManipulatorTrait::getStageFixtureManipulator()
@throws
to \Drupal\package_manager\StageBase::apply()
Active
11.1 π₯
package_manager.module