«Override File Type» → PHP.
How do I suppress the highlighting of syntax errors for a specific file in IntelliJ IDEA?