Skip to content

Generated multi accessor does not support only one service #276

@h4kuna

Description

@h4kuna

Version: 3.0.12

Hello,

Bug Description

I want create generated multi accessor, but in first moment i add only one service and try to run. I got exception with message
Service '011': Method MMEE\User\MultiMethods::get() must have no parameters. I check both interface and neon, but nothing found. After I add second service, that it works.

Steps To Reproduce

interface MultiAccessor
{
	function get($name): Listener
}
services:
	- App\Model\CacheCleanerAuthSubscriber

	- MultiAccessor(
		sub1: @App\Mode\CacheCleanerAuthSubscriber
	)

Expected Behavior

Works with one service or better message in exception.

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