How to turn off error types in VSCODE (PHP6606 for example) [closed]

In some inherited code, there are many cases where certain errors (such as PHP6606)

Constant from class 'subclass' referenced through child PHP(PHP6606)

appear due to the standards in place when the code was written. These mount up in the Find Problems (F8), making it difficult to find problems that really matter.

Using this as an example, is there a way to disable certain types of errors within VSCODE so that we can focus on real problems?