Skip to content

add more types

add more types #74

Triggered via push June 7, 2024 09:01
Status Failure
Total duration 38s
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/Helpers/ConsoleOutput.php#L21
Method Spatie\Backup\Helpers\ConsoleOutput::__call() has parameter $arguments with no value type specified in iterable type array.
phpstan: src/Helpers/File.php#L10
Property Spatie\Backup\Helpers\File::$allowedMimeTypes type has no value type specified in iterable type array.
phpstan: src/Notifications/BaseNotification.php#L12
Method Spatie\Backup\Notifications\BaseNotification::via() return type has no value type specified in iterable type array.
phpstan: src/Notifications/BaseNotification.php#L37
Method Spatie\Backup\Notifications\BaseNotification::backupDestinationProperties() return type with generic class Illuminate\Support\Collection does not specify its types: TKey, TValue
phpstan: src/Notifications/Channels/Discord/DiscordChannel.php#L10
Method Spatie\Backup\Notifications\Channels\Discord\DiscordChannel::send() has parameter $notifiable with no type specified.