Skip to content

Commit

Permalink
fix: Исправления замечаний psalm (UnusedClass, PossiblyUnusedMethod)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaivladimirv committed Jan 15, 2025
1 parent 5ad7499 commit a230b5d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions app/Http/Middleware/TrustHosts.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
use Override;
use Illuminate\Http\Middleware\TrustHosts as Middleware;

/**
* @psalm-api
*/
class TrustHosts extends Middleware
{
/**
Expand Down
5 changes: 4 additions & 1 deletion psalm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<referencedClass name="App\Http\Controllers\*Controller"/>
<referencedClass name="App\Data\*Cast"/>
<referencedClass name="App\Data\*Transformer"/>
<referencedClass name="App\Providers\ProvidedServiceServiceProvider"/>
<referencedClass name="App\Providers\*Provider"/>
<referencedClass name="App\Swagger\Parameters\*"/>
<referencedClass name="Tests\*Test"/>
<referencedClass name="Database\Factories\*Factory"/>
Expand Down Expand Up @@ -55,6 +55,9 @@
<referencedMethod name="App\UseCases\ProvidedService\Registration\RegistrationHandler::__construct"/>
<referencedMethod name="Database\Factories\BalanceFactory::withQuantityBalanceBetween"/>
<referencedMethod name="Database\Factories\BalanceFactory::withAmountBalanceBetween"/>
<referencedMethod name="Database\Factories\BalanceFactory::withAmountBalanceBetween"/>
<referencedMethod name="/App\\Jobs\\[\w\\]+::handle/"/>
<referencedMethod name="/App\\Notifications\\[\w\\]+::via/"/>
</errorLevel>
</PossiblyUnusedMethod>
<PossiblyUnusedProperty>
Expand Down

0 comments on commit a230b5d

Please sign in to comment.