Skip to content

Fix PHPStan violations: add missing type annotations, remove unused closure variable, fix \string[] return type#42

Draft
TomA-R wants to merge 1 commit intomasterfrom
phpstan_violations
Draft

Fix PHPStan violations: add missing type annotations, remove unused closure variable, fix \string[] return type#42
TomA-R wants to merge 1 commit intomasterfrom
phpstan_violations

Conversation

@TomA-R
Copy link
Copy Markdown
Member

@TomA-R TomA-R commented Mar 30, 2026

What?

Resolve 26 of 30 PHPStan baseline violations by adding missing iterable/generic type annotations, fixing the \string[] return type on getAutoCreateWhiteList(), and removing an unused $className closure variable in BindingClosureFactory.

4 remaining entries are external library type mismatches (ProxyManager) or PHPStan template resolution limits — not worth contorting code to fix.

Tickets / Documentation

n/a

@TomA-R TomA-R force-pushed the phpstan_violations branch from b7453fd to 4539676 Compare March 30, 2026 12:04
@TomA-R TomA-R force-pushed the phpstan_violations branch from 4539676 to 6444d5d Compare March 30, 2026 12:07
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.

1 participant