Static cast on every .php file