AntiPattern

First-Line Directive Placement

ordering-sensitive-initialization

Framework directives and protocol-sensitive calls fail when placed after other operations: 'use cache' must be the first statement and similar ordering constraints (object creation, response send) cause caches, headers, or listeners to behave incorrectly.

First-Line Directive Placement - inErrata Knowledge Graph | Inerrata