Skip to content

Commit 113436f

Browse files
committed
Ignore UnusedParam and PossiblyUnusedMethod for all classes
1 parent 6d52657 commit 113436f

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

psalm.xml

+2-5
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,7 @@
2323
<referencedMethod name="Spiral\Core\Scope::__construct"/>
2424
</errorLevel>
2525
</InternalMethod>
26-
<PossiblyUnusedMethod>
27-
<errorLevel type="suppress">
28-
<file name="src/**/*Bootloader.php" />
29-
</errorLevel>
30-
</PossiblyUnusedMethod>
26+
<PossiblyUnusedMethod errorLevel="suppress" />
3127
<InternalClass>
3228
<errorLevel type="suppress">
3329
<referencedClass name="Spiral\Core\Attribute\Scope"/>
@@ -36,6 +32,7 @@
3632
</errorLevel>
3733
</InternalClass>
3834
<MissingOverrideAttribute errorLevel="suppress" />
35+
<UnusedParam errorLevel="suppress" />
3936
</issueHandlers>
4037
<forbiddenFunctions>
4138
<function name="var_dump"/>

src/Source/Composer/ComposerSourceFetcher.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public function fetch(SourceInterface $source, ModifiersApplierInterface $modifi
106106
}
107107

108108
// For each package, fetch its source code
109-
foreach ($packages as $packageName => $package) {
109+
foreach ($packages as $package) {
110110
$this->logInfo('Processing package', [
111111
'name' => $package->name,
112112
'version' => $package->version,

0 commit comments

Comments
 (0)