Skip to content

add more types

add more types #75

Triggered via push June 7, 2024 09:17
Status Failure
Total duration 33s
Artifacts

phpstan.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors
phpstan: src/BackupDestination/BackupCollection.php#L18
Parameter #1 $callback of method Illuminate\Support\Collection<int,Spatie\Backup\BackupDestination\Backup>::filter() expects (callable(Spatie\Backup\BackupDestination\Backup, int): bool)|null, Closure(string): bool given.
phpstan: src/BackupDestination/BackupCollection.php#L19
Parameter #1 $callback of method Illuminate\Support\Collection<int,Spatie\Backup\BackupDestination\Backup>::map() expects callable(Spatie\Backup\BackupDestination\Backup, int): Spatie\Backup\BackupDestination\Backup, Closure(string): Spatie\Backup\BackupDestination\Backup given.
phpstan: src/BackupDestination/BackupDestinationFactory.php#L15
Unable to resolve the template type TKey in call to function collect
phpstan: src/BackupDestination/BackupDestinationFactory.php#L15
Unable to resolve the template type TValue in call to function collect
phpstan: src/Exceptions/CannotCreateDbDumper.php#L16
Parameter #1 $callback of method Illuminate\Support\Collection<int,int>::map() expects callable(int, int): string, Closure(string): non-falsy-string given.
phpstan: src/Notifications/Channels/Discord/DiscordMessage.php#L115
Method Spatie\Backup\Notifications\Channels\Discord\DiscordMessage::toArray() return type has no value type specified in iterable type array.
phpstan: src/Notifications/EventHandler.php#L45
Unable to resolve the template type TKey in call to function collect
phpstan: src/Notifications/EventHandler.php#L45
Unable to resolve the template type TValue in call to function collect
phpstan: src/Notifications/EventHandler.php#L56
Method Spatie\Backup\Notifications\EventHandler::allBackupEventClasses() return type has no value type specified in iterable type array.
phpstan: src/Notifications/Notifiable.php#L11
Method Spatie\Backup\Notifications\Notifiable::routeNotificationForMail() return type has no value type specified in iterable type array.