ERROR: Unable to parse file [path] at line 27

Hi, my friends!

Someone can I help me?

My stage of the test with sonarqube is return quality gate error [UNSTABLE], your version is [ sonar: scannerHome = tool ‘SonarScanner3.2.0.1227’].

The error is “ERROR: Unable to parse file [path of the code] at line 27”. The developers says that the code is correct, but the sonarqube tests return this error.

``
`ERROR: Unable to parse file [file://path/Product/Model/ProductScopesRepository.php] at line 33
ERROR: Parse error at line 33 column 26:

23: * @inheritDoc
24: /
25: class ProductScopesRepository implements ProductScopesRepositoryInterface
26: {
27: /
*
28: * @param ProductScopesCollection $collection
29: * @param ProductScopesResource $resource
30: * @param LoggerInterface $logger
31: /
32: public function __construct(
33: private readonly ProductScopesCollection $collection,
^
34: private readonly ProductScopesResource $resource,
35: private readonly LoggerInterface $logger
36: ) {
37: }
38:
39: /
*
40: * @inheritDoc
41: *
42: * @throws LocalizedException
43: */

The doc block is not terminated properly I would say
missing * at line 31 before the /

@mawinter69 thank you very much by answer. There is * yes, the code stay bad formatted in the forum.

I attached the printscreen

you’re in the wrong forum. As this is a php problem it seems I guess chances are low you get an answer here. Or it’s a problem in the sonarscanner, but that is also not related to Jenkins