Skip to content

Missing argument in services.yml doesn't keep track of factory methods #492

@spdionis

Description

@spdionis

The missing argument inspection in services definition doesn't understand if the service is created by a factory. Example:

services:
  service:
    class: MyClass
    factory_class: MyClass
    factory_method: factory      
class MyClass
{
    public function __construct($a, $b) {}

    public function factory() {}
}

I believe this was added in last update?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions