Skip to content

Class::disk(): Return value must be of type Illuminate\Filesystem\FilesystemAdapter, Sentry\Laravel\Features\Storage\SentryCloudFilesystem returned #745

@Gummibeer

Description

@Gummibeer

How do you use Sentry?

Sentry SaaS (sentry.io)

SDK version

3.7.0

Steps to reproduce

Have a method type-hinting for Illuminate\Filesystem\FilesystemAdapter and return Storage:disk('s3') or any other cloud disk.

Expected result

Type-hint before v3.7.0 still works as expected and a breaking change of the package i sonly introduced during a new major-release.

Actual result

TypeError is thrown with message:

Return value must be of type Illuminate\Filesystem\FilesystemAdapter, Sentry\Laravel\Features\Storage\SentryCloudFilesystem returned

Metadata

Metadata

Assignees

Labels

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions