Skip to content

chore: Add phpstan tool - #603

Merged
nemiah merged 1 commit into
nemiah:masterfrom
Gared:add_phpstan
Oct 29, 2026
Merged

nemiah merged 1 commit into
nemiah:masterfrom
Gared:add_phpstan

Conversation

@Gared

@Gared Gared commented Oct 10, 2026

Copy link
Copy Markdown
Contributor

This PR adds phpstan as static code analyser to this project.
I think this is very helpful, because there is a lot of untyped code that could lead to unexpected behaviour

@nemiah
nemiah merged commit 447fd19 into nemiah:master Oct 29, 2026
8 checks passed
nemiah pushed a commit that referenced this pull request Nov 2, 2026
The baseline of #603 was generated before #594, #598 and #601 were merged,
so master reports 19 errors. They are fixed in the code instead of being
added to the baseline:

- Return types for the new test methods and HKWPDv6::setPaginationToken().
- Array value types for GetSEPAAccounts::__serialize()/__unserialize() and
  the CAMT data provider.
- GetSEPAAccountsTest builds the UPD from HIUPDv6 segments, as UPD::$hiupd
  expects.
- HIUPDTest converts its examples in a typed helper (self:: instead of
  static::), which also clears the six baselined parse() errors.
- Drop the two CAMT baseline entries that #601 made obsolete.
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.

2 participants