* @param string $message
* @param array $context
*/
- public function log($level, $message, array $context = []) {
+ public function log($level, $message, array $context = []): void {
// FIXME: This flattens a $context a bit prematurely. When integrating
// with external/CMS logs, we should pass through $context.
if (!empty($context)) {
* @param string $message
* @param array $context
*/
- public function log($level, $message, array $context = []) {
+ public function log($level, $message, array $context = []): void {
echo $message . "\n";
}
* @param string $message
* @param array $context
*/
- public function log($level, $message, array $context = []) {
+ public function log($level, $message, array $context = []): void {
if (!isset($context['hostname'])) {
$context['hostname'] = CRM_Utils_System::ipAddress();
}
* @param string $message
* @param array $context
*/
- public function log($level, $message, array $context = []) {
+ public function log($level, $message, array $context = []): void {
$evalVar = function($m) use ($context) {
return $context[$m[1]] ?? '';
};
"symfony/filesystem": "~3.0 || ~4.4",
"symfony/process": "~3.0 || ~4.4",
"symfony/var-dumper": "~3.0 || ~4.4 || ~5.1",
- "psr/log": "~1.0",
+ "psr/log": "~1.0 || ~2.0 || ~3.0",
"symfony/finder": "~3.0 || ~4.4",
"tecnickcom/tcpdf" : "6.4.*",
"totten/ca-config": "~22.05",