Skip to content

Add PHPStan to test environment with max level #61

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

Merged
merged 1 commit into from
Jun 3, 2024

Conversation

clue
Copy link
Member

@clue clue commented May 21, 2024

This changeset adds PHPStan on max level to the test environment for all supported PHP versions as discussed in #56. It runs the maximum level supported with all errors addressed without having to resort to a baseline. The changeset size seems reasonable and this does not other affect our public API, so this should be safe to apply.

Builds on top of #60, #59, #58, #44 and reactphp/async#76

@clue clue added this to the v3.0.0 milestone May 21, 2024
@clue clue requested review from WyriHaximus and SimonFrings May 21, 2024 21:12
Copy link
Member

@SimonFrings SimonFrings left a comment

Choose a reason for hiding this comment

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

Nice 👍

@@ -120,7 +120,7 @@ public function delete(string $key): PromiseInterface;
*
* @param string[] $keys A list of keys that can obtained in a single operation.
* @param mixed $default Default value to return for keys that do not exist.
* @return PromiseInterface<array> Returns a promise which resolves to an `array` of cached values
* @return PromiseInterface<array<string,mixed>> Returns a promise which resolves to an `array` of cached values
Copy link
Member

Choose a reason for hiding this comment

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

Have we considered making the cache typeable? (Out of scope for this PR of course.)

Suggested change
* @return PromiseInterface<array<string,mixed>> Returns a promise which resolves to an `array` of cached values
* @return PromiseInterface<array<string,T>> Returns a promise which resolves to an `array` of cached values

Copy link
Member Author

Choose a reason for hiding this comment

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

Not sure how useful this is, but happy to discuss in a separate PR if this is something you want to look into 👍

Copy link
Member

Choose a reason for hiding this comment

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

I will do a PR once this is in together with one for DNS to show that off after doing some more research 👍 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants