Skip to content

Commit

Permalink
Fix PHP 8.2 compatibility issues
Browse files Browse the repository at this point in the history
  • Loading branch information
calind committed Jul 24, 2024
1 parent c060a8d commit 38bf8a6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Stack/Integrations/WooCommerce/WC_Console_Log_Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
/**
* Class WC_Console_Log_Handler
*/
// phpcs:ignore
class WC_Console_Log_Handler extends \WC_Log_Handler
{
/**
Expand All @@ -34,6 +35,7 @@ public function handle($timestamp, $level, $message, $context)
error_log($entry);
}

// phpcs:ignore
protected static function format_context($context)
{
$ctx = '';
Expand All @@ -56,6 +58,7 @@ protected static function format_context($context)
*
* @return string Formatted log entry.
*/
// phpcs:ignore
protected static function format_entry($timestamp, $level, $message, $context)
{
if (defined('STACK_JSON_LOG') && true === STACK_JSON_LOG) {
Expand Down
3 changes: 3 additions & 0 deletions src/Stack/MetricsRegistry.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

class MetricsRegistry
{
private $registry;
private $metrics = [];

public function __construct($metrics = [])
{
$storage = function_exists('apcu_enabled') && apcu_enabled()
Expand Down

0 comments on commit 38bf8a6

Please sign in to comment.