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

Add missing types #2112

Open
wants to merge 1 commit into
base: 8.x
Choose a base branch
from
Open

Add missing types #2112

wants to merge 1 commit into from

Conversation

franmomu
Copy link
Contributor

@franmomu franmomu commented Aug 6, 2022

Raising PHPStan level to 6 shows missing types, this PR tries to add missing types and generics (we still need to add iterable types).

protected $_maxData = 20;

/**
* @var array<string, array<string, array{
Copy link
Owner

Choose a reason for hiding this comment

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

Is this auto generated or manual? Same question for the other more complex blocks?

Copy link
Collaborator

Choose a reason for hiding this comment

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

This is manual, as phpstan is not that "smart" :)

* max: int,
* min: int,
* mean: float,
* }>>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
* }>>
* }

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