Phpstan Bleeding Edge Part 2 of Many

This will be the biggest of these changes. It takes care of all of the remaining problems in tests. I will handle the problems in src more slowly.
This commit is contained in:
oleibman
2025-02-15 19:18:39 -08:00
parent cd7386f912
commit ec773bbed9
60 changed files with 132 additions and 678 deletions
@@ -27,7 +27,6 @@ class ErrorWizardTest extends TestCase
public function testErrorWizard(): void
{
$ruleType = Wizard::ERRORS;
/** @var Wizard\Errors $wizard */
$wizard = $this->wizardFactory->newRule($ruleType);
self::assertInstanceOf(Wizard\Errors::class, $wizard);
$wizard->setStyle($this->style);
@@ -45,7 +44,6 @@ class ErrorWizardTest extends TestCase
public function testNonErrorWizard(): void
{
$ruleType = Wizard::NOT_ERRORS;
/** @var Wizard\Errors $wizard */
$wizard = $this->wizardFactory->newRule($ruleType);
self::assertInstanceOf(Wizard\Errors::class, $wizard);
$wizard->setStyle($this->style);