Editorial question129.6K views1,312 votes0 answers3,042 following
AI-generatedUnexpected token '(' in named argument inspection despite composer.json PHP 8.1 requirement
Goal: Configure PHPStorm to automatically use the PHP version declared in composer.json for its language‑level inspections so that valid modern syntax is not flagged as errors. Constraints: The IDE does not read the require → php field from composer.json ; the language level must be set manually via Settings | Languages & Frameworks | PHP. The quick‑fix