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

Refactor codebase, increase PHPStan level to 6 #184

Merged
merged 7 commits into from
Feb 19, 2024
Merged

Conversation

bastien-phi
Copy link
Collaborator

This PR also simplifies Middleware::validate as a parameter was not used anymore and makes usage of openapi version in RequestValidator::validate

@bastien-phi
Copy link
Collaborator Author

@hotmeteor @jarrodparkes : As this PR is quite large, I requested reviews from both of you. Feel free to make comments

@jarrodparkes
Copy link
Collaborator

@bastien-phi taking a look now, thx!

Copy link
Collaborator

@jarrodparkes jarrodparkes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM @hotmeteor how about you?

Copy link
Owner

@hotmeteor hotmeteor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is stdClass the way to go over object? I didn't realize that.

@bastien-phi
Copy link
Collaborator Author

It looks like it : https://phpstan.org/r/2c329201-22fb-4786-bc59-e12f4258771e

object typehint means any object (any class) whereas stdClass is the actual class of (object) $array.

@bastien-phi
Copy link
Collaborator Author

@hotmeteor Is it ok for you ?

@hotmeteor hotmeteor merged commit 0a765f6 into master Feb 19, 2024
8 checks passed
@hotmeteor hotmeteor deleted the improve_codebase branch February 19, 2024 14:33
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.

3 participants