Skip to content

Standardize middleware defineValidationRules signatures in module templates #516

@armanist

Description

@armanist

Summary

Standardize defineValidationRules(Request $request): void across DemoWeb and DemoApi middleware templates for a consistent method contract.

Scope

  • Update BaseMiddleware.php.tpl in DemoWeb and DemoApi to use : void
  • Update all middleware template overrides to match : void

Why

Current templates use mixed signatures (with and without : void), which creates inconsistency in generated modules and avoidable confusion during maintenance.

Acceptance criteria

  • All defineValidationRules(Request $request) methods under:
    • src/Module/Templates/DemoWeb/src/Middlewares
    • src/Module/Templates/DemoApi/src/Middlewares
      use : void consistently, including base middleware templates.

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions