Skip to content

add more types

add more types #76

Triggered via push June 7, 2024 10:07
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/Tasks/Backup/FileSelection.php#L135
Method Spatie\Backup\Tasks\Backup\FileSelection::sanitize() return type with generic class Illuminate\Support\Collection does not specify its types: TKey, TValue
phpstan: src/Tasks/Backup/Manifest.php#L44
Method Spatie\Backup\Tasks\Backup\Manifest::files() return type has no value type specified in iterable type array.
phpstan: src/Tasks/Backup/Manifest.php#L44
Method Spatie\Backup\Tasks\Backup\Manifest::files() return type has no value type specified in iterable type array|Generator.
phpstan: src/Tasks/Backup/Zip.php#L86
Method Spatie\Backup\Tasks\Backup\Zip::add() has parameter $files with no value type specified in iterable type iterable.