Skip to content

Commit

Permalink
Fixed static analysis issue
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyKleyman committed Sep 14, 2023
1 parent 9d278d6 commit 4c297b7
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@ protected function verifyOneTransactionNoSpans(DataFromAgent $dataFromAgent): Tr
/**
* @param class-string<AutoInstrumentationBase> $instrClassName
* @param string[] $expectedNames
* @param bool $isEnabledByDefault
*
* @return void
*/
Expand All @@ -199,7 +198,7 @@ protected static function implTestIsAutoInstrumentationEnabled(string $instrClas
$actualNames = $instr->keywords();
$actualNames[] = $instr->name();
self::assertEqualAsSets($expectedNames, $actualNames);
$isEnabledByDefault = OptionDefaultValues::AST_PROCESS_ENABLED || (!$instr->requiresUserlandCodeInstrumentation());
$isEnabledByDefault = OptionDefaultValues::AST_PROCESS_ENABLED || (!$instr->requiresUserlandCodeInstrumentation()); // @phpstan-ignore-line
self::assertSame($isEnabledByDefault, $instr->isEnabled());

/**
Expand Down

0 comments on commit 4c297b7

Please sign in to comment.