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

Require phpstan/phpstan 2 #17

Merged
merged 10 commits into from
Feb 19, 2025
Merged

Require phpstan/phpstan 2 #17

merged 10 commits into from
Feb 19, 2025

Conversation

OskarStark
Copy link
Collaborator

No description provided.

@OskarStark OskarStark self-assigned this Feb 11, 2025
@codecov-commenter
Copy link

codecov-commenter commented Feb 11, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.18%. Comparing base (6c99809) to head (684e3ee).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master      #17   +/-   ##
=========================================
  Coverage     92.18%   92.18%           
  Complexity      295      295           
=========================================
  Files            64       64           
  Lines          1152     1152           
=========================================
  Hits           1062     1062           
  Misses           90       90           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@OskarStark OskarStark changed the title Use PHPStan 2 Require phpstan/phpstan 2 Feb 11, 2025
Copy link
Collaborator

@silasjoisten silasjoisten left a comment

Choose a reason for hiding this comment

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

Can you fix those phpstan errors instead of ignoring them?

Copy link
Contributor

@edodusi edodusi left a comment

Choose a reason for hiding this comment

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

I see there are a lot of ignores, should we use this branch to solve them before merging?

Comment on lines +88 to +91
message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertEmpty\(\) with Storyblok\\Api\\Domain\\Value\\Filter\\FilterCollection will always evaluate to false\.$#'
identifier: staticMethod.impossibleType
count: 2
path: tests/Unit/Domain/Value/Filter/FilterCollectionTest.php
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is a false positive, otherwise our test would fail

@@ -27,7 +27,7 @@ public function __construct(
}

/**
* @param array<string, list<string>> $headers
* @param array<string, array<string>> $headers
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This fixes some errors, but I am in favor of keeping the list

@OskarStark
Copy link
Collaborator Author

ping @silasjoisten @edodusi

@edodusi edodusi merged commit 9b681da into master Feb 19, 2025
4 checks passed
@edodusi edodusi deleted the feature/phpstan-2 branch February 19, 2025 14:29
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