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

Add return type declaration to function #331

Merged

Conversation

BadJacky
Copy link
Contributor

Title: Add return type declaration to the getFacadeAccessor method of the Skeleton class

Description:
In this PR, I added a return type declaration to the getFacadeAccessor method. This change can improve our code quality because:

  1. It makes the code clearer and easier to read. By explicitly specifying the return type in the method signature, other developers can more easily understand the expected behavior of this method.
  2. It can help us avoid type errors at runtime. If we try to return the wrong type, PHP will throw an error at compile time, not at runtime.

I look forward to your feedback!

@freekmurze freekmurze merged commit 3269952 into spatie:main Mar 28, 2024
1 check passed
@freekmurze
Copy link
Member

Thanks!

@BadJacky BadJacky deleted the feature/add-return-type-declaration branch March 29, 2024 01:17
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