Skip to content

PHPStan [no_release] - #104

Closed
james-hill-matomo wants to merge 1 commit into
5.x-devfrom
phpstan
Closed

james-hill-matomo wants to merge 1 commit into
5.x-devfrom
phpstan

Conversation

@james-hill-matomo

Copy link
Copy Markdown
Contributor

Change in VisitorDetails is no-op - is_empty(null) is true.

Checklist

  • [✖] Tested locally or on demo2/demo3?
  • [NA] New test case added/updated?
  • [NA] Are all newly added texts included via translation?
  • [NA] Are text sanitized properly? (Eg use of v-text v/s v-html for vue)
  • [✖] Version bumped?
  • [NA] I have understood, reviewed, and tested all AI outputs before use
  • [NA] All AI instructions respect security, IP, and privacy rules

Change in VisitorDetails is no-op - is_empty(null) is true.
@snake14

snake14 commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Carried across to #133 against 6.x-dev, which is where this plugin's CI now lives.

@snake14 snake14 closed this Sep 17, 2026
snake14 added a commit that referenced this pull request Sep 17, 2026
Carried across from #104, which raised the level and dropped a duplicated
is_null() check in VisitorDetails that min() on the line above has already
ruled out. That pull request targeted 5.x-dev and predates the shared CI
umbrella, so only these two pieces are still wanted.

Level 5 then reported an always-true property_exists() on
ViewDataTable\Config::$selectable_columns. Its sibling guard on
Numeric::$byteSizeUnit goes with it: PHPStan does not flag that one, but the
property has been in core since 2022 and is present at 6.0.0-b1, so the
comment claiming it may be missing is no longer true of any supported Matomo.
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.

2 participants