projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use ?? operator instead of CRM_Utils_Array::value() in return statements
[civicrm-core.git]
/
CRM
/
Report
/
Utils
/
Report.php
diff --git
a/CRM/Report/Utils/Report.php
b/CRM/Report/Utils/Report.php
index 276ef7fe6bca7781bc3a0eb3ec1daedfcfd14859..329bf0f83575839696effa228a7d25970cfdb0f8 100644
(file)
--- a/
CRM/Report/Utils/Report.php
+++ b/
CRM/Report/Utils/Report.php
@@
-99,7
+99,7
@@
WHERE TRIM(BOTH '/' FROM CONCAT(report_id, '/', name)) = %1";
$params = [1 => [$path, 'String']];
$valId[$path] = CRM_Core_DAO::singleValueQuery($sql, $params);
}
$params = [1 => [$path, 'String']];
$valId[$path] = CRM_Core_DAO::singleValueQuery($sql, $params);
}
- return
CRM_Utils_Array::value($path, $valId)
;
+ return
$valId[$path] ?? NULL
;
}
/**
}
/**