Skip to content

hardening: enhance PHPDoc for improved static analysis #6867

@somethingwithproof

Description

@somethingwithproof

This issue proposes enhancing PHPDoc blocks across core library files to improve the accuracy of static analysis tools like PHPStan.

Key focus areas include:

  1. Defining precise array shapes for complex data structures (e.g., $user, $config).
  2. Adding missing type information for function parameters and return values.
  3. Reducing the number of mixed and array types where more specific types are known.

Improved static analysis helps catch subtle bugs and ensures that architectural assumptions remain valid as the codebase evolves.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions