Skip to content

Commit cc09ca2

Browse files
swissspidyCopilot
andauthored
Update src/Command.php
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 1f255b9 commit cc09ca2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Command.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -593,8 +593,8 @@ public function queries( $args, $assoc_args ) {
593593
// Skip if filtering by callback and this isn't the right one
594594
if ( $callback && isset( $logger->callback ) ) {
595595
// Normalize callback for comparison
596-
$normalized_callback = str_replace( array( '->', '::' ), '', (string) $logger->callback );
597-
$normalized_filter = str_replace( array( '->', '::' ), '', $callback );
596+
$normalized_callback = trim((string) $logger->callback);
597+
$normalized_filter = trim($callback);
598598
if ( false === stripos( $normalized_callback, $normalized_filter ) ) {
599599
continue;
600600
}

0 commit comments

Comments
 (0)