It's not possible to create a filter without a constructor with and a array $properties parameters, because of how we wire the class passed as parameter of @ApiFilter, we should handle this case, and allow to create custom filters without constructor.
Also when using the default Dependency Injection configuration of Symfony 4, classes passed as parameters of @ApiFilter are registered two times, one time by Symfony's autowiring, one time by our compiler pass. If there are no constructors, it's useless and we should prevent this.
It's not possible to create a filter without a constructor with and a
array $propertiesparameters, because of how we wire the class passed as parameter of@ApiFilter, we should handle this case, and allow to create custom filters without constructor.Also when using the default Dependency Injection configuration of Symfony 4, classes passed as parameters of
@ApiFilterare registered two times, one time by Symfony's autowiring, one time by our compiler pass. If there are no constructors, it's useless and we should prevent this.