Skip to content

EventManagerAwareInterface and EventManagerAwareTrait parameters have different names #41

@rogervila

Description

@rogervila

Bug Report

On the EventManagerAwareInterface, the parameter for setEventManager method is called $eventManager while on EventManagerAwareTrait is called $events.

This causes Psalm errors when using the Trait. I can open a PR to use the same variable name, but we have to decide which one to use.

Q A
Version(s) 3.10.x

Summary

Psalm triggers a ParamMismatch error when using the EventManagerAwareTrait

Current behavior

Affects Psalm analysis only

How to reproduce

check this Pull Request comment

Expected behavior

Once the parameter name remains the same, the error will disappear.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions