Skip to content

Statement.php uninitialized-property findings need local-variable narrowing rewrite #61

Closed

Description

@tyrsson

Context

Part of #60.

Data

mago analyze flags uninitialized-property for $mysqli, $driver, and $resource in src/Statement.php. Each is set via a dedicated setter (initialize(), setDriver(), prepare()/setResource()), never in the constructor.

These findings will be captured in a mago baseline rather than fixed or suppressed inline.

Activity

  1. linked a pull request that will close this issueFix mago analyze findings (WIP) #60on Aug 10, 2026
  2. added this to the 0.5.0 milestone on Aug 10, 2026
  3. added theissue type on Aug 10, 2026
  4. tyrsson commented on Oct 7, 2026

    @tyrsson
    MemberAuthor

    Closing as resolved. The uninitialized-property findings on src/Statement.php (\, \, \) are captured in the committed analysis-baseline.toml (3 entries), and mago analyze passes cleanly against it on 0.5.x.

  5. reopened this on Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions