From 4cab21d9031c765d648c3c4af6b98f17211c839c Mon Sep 17 00:00:00 2001 From: Bruce Weirdan Date: Sun, 14 Nov 2021 22:55:12 +0200 Subject: [PATCH] Use snake_case property name --- src/Psalm/Report/ConsoleReport.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Psalm/Report/ConsoleReport.php b/src/Psalm/Report/ConsoleReport.php index f30d1d91b..bbd19e392 100644 --- a/src/Psalm/Report/ConsoleReport.php +++ b/src/Psalm/Report/ConsoleReport.php @@ -14,7 +14,7 @@ use function substr; class ConsoleReport extends Report { /** @var string|null */ - private $linkFormat; + private $link_format; public function create(): string { @@ -118,13 +118,13 @@ class ConsoleReport extends Report return $reference; } - if (null === $this->linkFormat) { + if (null === $this->link_format) { // if xdebug is not enabled, use `get_cfg_var` to get the value directly from php.ini - $this->linkFormat = ini_get('xdebug.file_link_format') ?: get_cfg_var('xdebug.file_link_format') + $this->link_format = ini_get('xdebug.file_link_format') ?: get_cfg_var('xdebug.file_link_format') ?: 'file://%f#L%l'; } - $link = strtr($this->linkFormat, ['%f' => $data->file_path, '%l' => $data->line_from]); + $link = strtr($this->link_format, ['%f' => $data->file_path, '%l' => $data->line_from]); // $reference = $data->file_name . ':' . $data->line_from . ':' . $data->column_from; return "\033]8;;" . $link . "\033\\" . $reference . "\033]8;;\033\\";