Your project must not contain invalid function or method calls
- Read doc
- Reliability
- Major
More information: https://insight.symfony.com/what-we-analyse/php.invalid_call
- protected function getComposerFileContent(): array
- {
- $content = [];
- $composerFilePath = $this->getComposerFilePath();
- if (!empty($composerFilePath)) {
- $content = json_decode(file_get_contents($composerFilePath), true, 512, JSON_THROW_ON_ERROR);
- }
- return $content;
- }