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

[Bug]: berkayk/onesignal-laravel facade not being recognized #944

Closed
walterdis opened this issue Mar 4, 2024 · 5 comments
Closed

[Bug]: berkayk/onesignal-laravel facade not being recognized #944

walterdis opened this issue Mar 4, 2024 · 5 comments

Comments

@walterdis
Copy link

Bug description

Hello,

I'm currently using the berkayk/onesignal-laravel package in my Laravel project. However, I'm facing an issue where the Laravel IDE isn't auto-completing the facade methods for this package.

Interestingly, when I use the barryvdh/laravel-ide-helper package, the auto-completion works as expected.

Could you please provide some guidance on how to resolve this issue with the berkayk/onesignal-laravel package so that the Laravel IDE can auto-complete the facade methods?

Thank you.

image

Plugin version

No response

Operating system

None

Steps to reproduce

No response

Relevant log output

No response

@adelf
Copy link
Member

adelf commented Mar 12, 2024

Hello. Sorry for late response.

You can add "@see ...\OneSignalClient" phpDoc to the facade class, and it will work.

@walterdis
Copy link
Author

Hi, thx for the answer ;)
I'm not the one who maintains the package or, there's another way to do it?

@Fludem
Copy link

Fludem commented Mar 18, 2024

Hey,

Maybe he can do something, but this is kind of a one-off, honestly, as most packages work except this.

There is an open pull request from almost 3 years ago to add the @see and other phpDocs to the facade class here, but they've been ignored:

berkayk/laravel-onesignal#153

There are a ton of open PRs and issues, and they need to be maintained better. I suggest copying all of these files into your project, honestly.

You can either hard copy or create a fork of the project and symlink it as a package.

It's not usually regarded as best practice due to missing out on updates and increasing the code you have to maintain.

But this is 3 files and you won't be missing out on many updates.

@walterdis
Copy link
Author

Hey,

Maybe he can do something, but this is kind of a one-off, honestly, as most packages work except this.

There is an open pull request from almost 3 years ago to add the @see and other phpDocs to the facade class here, but they've been ignored:

berkayk/laravel-onesignal#153

There are a ton of open PRs and issues, and they need to be maintained better. I suggest copying all of these files into your project, honestly.

You can either hard copy or create a fork of the project and symlink it as a package.

It's not usually regarded as best practice due to missing out on updates and increasing the code you have to maintain.

But this is 3 files and you won't be missing out on many updates.

You're right ;)

I'll give it a try.
Thank you

@adelf
Copy link
Member

adelf commented Mar 22, 2024

I'll also try to implement facade classes fetching from strings like 'onesignal'.

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

No branches or pull requests

3 participants