Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix phpstan errors in ci #2817

Merged
merged 1 commit into from
Mar 2, 2022
Merged

Fix phpstan errors in ci #2817

merged 1 commit into from
Mar 2, 2022

Conversation

phh
Copy link

@phh phh commented Mar 2, 2022

Since CI is failing I thought I rather just fix it if you don't mind :)

I have:

  • Removed no longer failing errors
  • Added a few @return and @var type hints to make PHPStan happy again
  • Removed code for the MediaObserver isLumen() and isLaravel7orHigher() since L7 is no longer supported

Types and generics are still not my strong side so if anything is not as expected please let me know!

At least now CI is no longer complaining without just suppressing the errors :)

@freekmurze freekmurze merged commit c16c833 into spatie:main Mar 2, 2022
@freekmurze
Copy link
Member

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants