Problem/Motivation

Many hook implementations and internal callbacks in the module lack explicit type hints for parameters and return values.

Proposed resolution

  • Add type hints to all function signatures in .module files.
  • Add type hints to all internal callbacks and anonymous functions.

Remaining tasks

Audit procedural code and apply type hints.

User interface changes

None.

API changes

Stronger type safety for hook implementations.

Issue fork myrest-3614999

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

sergeydruua created an issue. See original summary.

  • sergeydruua committed a0aadb48 on 1.0.x
    Issue #3614999: Add type hints to hook implementations and callbacks
    
sergeydruua’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

sergeydruua’s picture

Status: Fixed » Closed (fixed)