Skip to content

Commit 2770413

Browse files
committed
Fix Undefined array key
1 parent d240f35 commit 2770413

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/GraphQl/Model/Query/Logger/NewRelic.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function __construct(
4141
*/
4242
public function execute(array $queryDetails)
4343
{
44-
$transactionName = $queryDetails[LoggerInterface::OPERATION_NAMES] ?: '';
44+
$transactionName = $queryDetails[LoggerInterface::OPERATION_NAMES] ?? '';
4545
$this->newRelicWrapper->setTransactionName('GraphQL-' . $transactionName);
4646

4747
if (!$this->config->isNewRelicEnabled()) {

0 commit comments

Comments
 (0)