fix: PHPStan and test strictness improvements

Add bin/ scripts to PHPStan scanFiles, suppress property.onlyWritten for
by-ref test properties, add exhaustive default match arm, use explicit
expects() on mock stubs, fix data provider return type, and simplify
redundant null check in NotificationServiceTest.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-22 14:15:36 +01:00
parent ae392d55e8
commit 555199b217
6 changed files with 20 additions and 7 deletions

View File

@@ -42,7 +42,7 @@ class ModuleI18nContractTest extends TestCase
$modules[$moduleId] = [$moduleId, $resolvedPath];
}
return $modules;
return array_values($modules);
}
#[DataProvider('moduleProvider')]