Skip to content

Conversation

@erickmcarvalho
Copy link

The Laravel facades normally should include PHPDoc to specify which methods are available on the accessor class.

In case of Novu Laravel SDK, the facade accesses the Novu\SDK\Novu class, but doesn't have the methods listed in the facade's PHP docs.
As a side effect, some IDEs and code quality tools, like PHPStan, can't identify the SDK methods when using the facade.

In this PR, I'm adding all SDK methods as the PHPDoc static methods annotation, which will instruct the IDEs and tools to know which methods are accessed by the facade, like a good practice when developing facades for Laravel.

@erickmcarvalho erickmcarvalho changed the title chore(facade): add phpdoc static methods for Novu SDK Add phpdoc static methods for Novu SDK to facade May 12, 2025
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.

1 participant