Skip to content

Commit

Permalink
Add extension scanner ignore line
Browse files Browse the repository at this point in the history
  • Loading branch information
garbast committed May 22, 2024
1 parent 39b0310 commit ea8aeae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Classes/Parser/ClassParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public function getFileSegments(string $filePath): FileSegments
$fileSegments->setCode(file_get_contents($filePath));

try {
// @extensionScannerIgnoreLine
$parser = $this->parserFactory->createForVersion(PhpVersion::fromComponents(8, 2));
$fileSegments->setStatements($parser->parse($fileSegments->getCode()));

Expand Down
1 change: 1 addition & 0 deletions Tests/Functional/Event/RegisterAutoloaderEventTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ public function isPropagationStopped(): void
{
$registerAutoloaderEvent = new RegisterAutoloaderEvent(GeneralUtility::getContainer());

// @extensionScannerIgnoreLine
$condition = $registerAutoloaderEvent->isPropagationStopped();

self::assertTrue($condition);
Expand Down

0 comments on commit ea8aeae

Please sign in to comment.