Why this matters
Prevents drift and simplifies environment-specific changes.
Define configuration values in one place (env/config file/const class) and reference them; avoid scattering magic strings.
Prevents drift and simplifies environment-specific changes.
Side-by-side examples engineers can pattern-match during review.
$url = 'https://api.example.com/v1'; // elsewhere uses another stringfinal class Config { public const API_BASE = 'https://api.example.com/v1'; }
$url = Config::API_BASE;$timeout = 30; // repeatedConfig::TIMEOUT_SECONDSFrom the same buckets as this rule.