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(service): add return type for uuid service to satisfy phpstan #9

Merged
merged 1 commit into from
Aug 30, 2023

Conversation

yassinedoghri
Copy link
Contributor

@yassinedoghri yassinedoghri commented Aug 30, 2023

Hey @michalsn,

I'm currently working on including the new phpstan-codeigniter extension to Castopod and had phpstan complain because the uuid service is missing a return type:

Service method 'uuid' returns mixed.         
💡 Perhaps you forgot to add a return type?

Decided to set the return type in a docstring as I'm not sure it works as a return type in PHP 7.3

On another note, I think this project should not be supporting php 7.3 and even 7.4 as their EOL has passed. + CodeIgniter is in the talks about dropping a few deprecated versions as well! (codeigniter4/CodeIgniter4#6921, codeigniter4/CodeIgniter4#7320)

Thank you again for this library, I use it everywhere! 🙂

@michalsn michalsn merged commit be75ec5 into michalsn:develop Aug 30, 2023
2 of 3 checks passed
@michalsn
Copy link
Owner

Thank you.

Well, this project needs some love... maybe one day 😉

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