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

phpstan #325

Merged
merged 8 commits into from
Nov 30, 2023
Merged

phpstan #325

merged 8 commits into from
Nov 30, 2023

Conversation

Justintime50
Copy link
Member

@Justintime50 Justintime50 commented Nov 30, 2023

Description

This PR introduces PHPStan which is a static analysis tool. Think of it like mypy from Python but with additional tools built in for syntax checking in addition to type checking. This found SO many issues that needed fixing and will help enforce proper type hints.

Testing

There are 3 additional levels of scrutiny we could use in this tool but it was getting overwhelming and I stopped here. There are some bigger changes needed to correct levels 7-9 so we'll revisit later.

Pull Request Type

Please select the option(s) that are relevant to this PR.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Improvement (fixing a typo, updating readme, renaming a variable name, etc)

@Justintime50 Justintime50 marked this pull request as ready for review November 30, 2023 18:27
@Justintime50 Justintime50 requested a review from a team as a code owner November 30, 2023 18:27
Copy link

@dcaballeroc dcaballeroc left a comment

Choose a reason for hiding this comment

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

Nice!

Copy link
Member

@nwithan8 nwithan8 left a comment

Choose a reason for hiding this comment

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

PHP with actual type hints, my IDE thanks you.

@Justintime50
Copy link
Member Author

PHP with actual type hints, my IDE thanks you.

I too am quite stoked

@Justintime50 Justintime50 merged commit 6a08b4a into master Nov 30, 2023
6 checks passed
@Justintime50 Justintime50 deleted the phpstan branch November 30, 2023 19:02
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.

4 participants