Today we are integrating the "Inspecions" seriously in our PHP project.
Until today we just used it as suggestions but from today on we'd expect to only commit "if inspections are green light".
# Step 1, language level
In a project with language level 7.0 we expect ALL function calls to have the paremeters type-hinted, both class hints and scalar-type hints.
# Step 2, check inspections are active
I have the inspection "Missing parameter's type declaration" activated (it's activated by default, indeed) with "weak warning", although I have also tried as "warning" and the same results, as well as the return type hinting among many others:
# Step 3, place a trap in the code
In my code, I voluntarily comment out the type hint of a parameter and of the return type for a given function, to see if the inspections catch them:
# Step 4, run the inspections
I run the inspections for the full folder with the menu `Code | Inspect code` and I successfully get the inspections window result... but surprisingly it catches the "missing return type" but does not catch the "missing parameter's hint":
How can I set the configuration up so it catches the `$processId` not being qualified?
PhpStorm 2021.1 EAP Build #PS-211.4961.37, built on January 28, 2021 PhpStorm EAP User Expiration date: February 27, 2021 Runtime version: 184.108.40.206+11-b1257.1 amd64 VM: Dynamic Code Evolution 64-Bit Server VM by JetBrains s.r.o. Windows 10 10.0 GC: G1 Young Generation, G1 Old Generation Memory: 750M Cores: 12 Registry: run.processes.with.pty=TRUE