Skip to content

Mailer $this->getMailer() #6

Closed
Closed
@dereuromark

Description

@dereuromark

Should also be understood:

    $this->getMailer('Notification')

as right now it fails as

  179    Parameter #2 $mailer of class App\Release\Releaser constructor expects App\Mailer\NotificationMailer, 
         Cake\Mailer\Mailer given.  

when passed to another method.

But since this is based on a trait method, similar issues as with other trait methods apply here.
Until PHPStan doesnt resolve this, we might have to keep this open - refs phpstan/phpstan#5761

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