Skip to content

Improve phpstan level #143

Description

@njoubert-cleverage

Description

  • Up phpstan level from 6 to 10
  • Remove ignoreErrors
  • Remove @phpstan-ignore-*

Requirements

  • Documentation updates
    • Reference
    • Cookbooks
    • Changelog
  • Unit tests

Breaking changes

Activity

  1. added this to the v5.0 milestone on Dec 16, 2024
  2. modified the milestones: v5.0, v6.0 on Dec 9, 2025
  3. removed this from the v6.0 milestone on Oct 9, 2026
  4. added 4 commits that reference this issue on Oct 9, 2026
  5. njoubert-cleverage commented on Oct 9, 2026

    @njoubert-cleverage
    MemberAuthor

    Progress

    Current state on main: PHPStan level 7, no ignoreErrors, no @phpstan-ignore.

    Done

    Edge cases found along the way were fixed and tested (e.g. InputIteratorTask with a nested IteratorAggregate, CsvResource blank header line, XpathEvaluatorTransformer invalid query / namespace nodes, SlugifyTransformer invalid UTF-8).

    Planned for v6.0 (draft PRs)

    Next (v6.x, no BC expected)

    • Levels 9 and 10: ~500 errors, mostly mixed values read from $options[...]. The analysis on the v6 branch shows they can all be fixed with PHPDoc and local type narrowing, without changing native signatures, so they do not require another major version.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions