Skip to content

[AI] PHPStan e confidenza agenti #6

Description

@marco76tv

Aggiornamento agente 2026-05-26, refresh ultimo run PHPStan.

Sweep PHPStan root

  • Comando: cd laravel && ./vendor/bin/phpstan analyse Modules --error-format=json
  • File analizzati: 5151
  • Risultato root sweep: ERROR
  • Errori totali nel root sweep Modules: 101
  • Modulo: Modules/Activity
  • Errori del modulo: 16
  • Repo modulo confermata con cd laravel/Modules/Activity && git remote -v: laraxot/module_activity_fila5
  • Remote: git@github.com:laraxot/module_activity_fila5.git

Identificatori

  • argument.type: 4
  • array.duplicateKey: 3
  • class.notFound: 4
  • phpDoc.parseError: 1
  • return.type: 4

Errori

  • Modules/Activity/app/Filament/Pages/ListLogActivities.php:67 [argument.type] Parameter Bump stefanzweifel/git-auto-commit-action from 5 to 7 #2 $array of function implode expects array, array given.
  • Modules/Activity/app/Filament/Pages/ListLogActivities.php:87 [argument.type] Parameter Bump stefanzweifel/git-auto-commit-action from 5 to 7 #2 $array of function implode expects array, array given.
  • Modules/Activity/app/Filament/Pages/ListLogActivities.php:256 [argument.type] Parameter Bump stefanzweifel/git-auto-commit-action from 5 to 7 #2 $array of function implode expects array, array given.
  • Modules/Activity/app/Filament/Pages/ListLogActivities.php:267 [argument.type] Parameter Bump stefanzweifel/git-auto-commit-action from 5 to 7 #2 $array of function implode expects array, array given.
  • Modules/Activity/app/Filament/Resources/ActivityResource/Schemas/ActivityForm.php:16 [class.notFound] Method Modules\Activity\Filament\Resources\ActivityResource\Schemas\ActivityForm::getFormSchema() has invalid return type Filament\Forms\Components\Component.
  • Modules/Activity/app/Filament/Resources/ActivityResource/Schemas/ActivityForm.php:18 [return.type] Method Modules\Activity\Filament\Resources\ActivityResource\Schemas\ActivityForm::getFormSchema() should return array<int|string, Filament\Forms\Components\Component> but returns array<string, Filament\Forms\Components\KeyValue|Filament\Forms\Components\TextInput>.
  • Modules/Activity/app/Filament/Resources/ActivityResource/Schemas/ActivityInfolist.php:15 [class.notFound] Method Modules\Activity\Filament\Resources\ActivityResource\Schemas\ActivityInfolist::getInfolistSchema() has invalid return type Filament\Infolists\Components\Component.
  • Modules/Activity/app/Filament/Resources/ActivityResource/Schemas/ActivityInfolist.php:17 [return.type] Method Modules\Activity\Filament\Resources\ActivityResource\Schemas\ActivityInfolist::getInfolistSchema() should return array<int|string, Filament\Infolists\Components\Component> but returns array<string, Filament\Infolists\Components\TextEntry>.
  • Modules/Activity/app/Filament/Resources/ActivityResource/Tables/ActivitysTable.php:18 [phpDoc.parseError] PHPDoc tag @return has invalid value (array<int|string, \Filament\Tables\Columns\Column>): Unexpected token "\|string,", expected '>' at offset 28 on line 2
  • Modules/Activity/app/Filament/Resources/SnapshotResource/Schemas/SnapshotForm.php:16 [class.notFound] Method Modules\Activity\Filament\Resources\SnapshotResource\Schemas\SnapshotForm::getFormSchema() has invalid return type Filament\Forms\Components\Component.
  • Modules/Activity/app/Filament/Resources/SnapshotResource/Schemas/SnapshotForm.php:18 [return.type] Method Modules\Activity\Filament\Resources\SnapshotResource\Schemas\SnapshotForm::getFormSchema() should return array<int|string, Filament\Forms\Components\Component> but returns array<string, Filament\Forms\Components\KeyValue|Filament\Forms\Components\TextInput>.
  • Modules/Activity/app/Filament/Resources/StoredEventResource/Schemas/StoredEventForm.php:18 [class.notFound] Method Modules\Activity\Filament\Resources\StoredEventResource\Schemas\StoredEventForm::getFormSchema() has invalid return type Filament\Forms\Components\Component.
  • Modules/Activity/app/Filament/Resources/StoredEventResource/Schemas/StoredEventForm.php:20 [return.type] Method Modules\Activity\Filament\Resources\StoredEventResource\Schemas\StoredEventForm::getFormSchema() should return array<int|string, Filament\Forms\Components\Component> but returns array<string, Filament\Forms\Components\DateTimePicker|Filament\Forms\Components\KeyValue|Filament\Forms\Components\Textarea|Filament\Forms\Components\TextInput>.
  • Modules/Activity/lang/it/snapshot.php:54 [array.duplicateKey] Array has 2 duplicate keys with value 'label' ('label', 'label').
  • Modules/Activity/lang/it/snapshot.php:55 [array.duplicateKey] Array has 2 duplicate keys with value 'plural_label' ('plural_label', 'plural_label').
  • Modules/Activity/lang/it/snapshot.php:56 [array.duplicateKey] Array has 2 duplicate keys with value 'actions' ('actions', 'actions').

Note operative

  • Prima di correggere, consultare la documentazione PHPStan dell'identificatore segnalato, ad esempio https://phpstan.org/error-identifiers/<identifier>.
  • Non usare baseline, @phpstan-ignore, cast o allargamenti di tipo per silenziare il problema: correggere la causa reale.
  • Questo aggiornamento deriva dal root sweep aggregato; puo' differire da un run isolato del modulo se bootstrap/config locali cambiano.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions