From 0f85bc1394a613f0c2ef25d56871bf43fdf430d9 Mon Sep 17 00:00:00 2001 From: Matthias Morin Date: Sat, 16 Jan 2021 18:08:26 +0100 Subject: [PATCH] is provided 2 parameters on lines 199 and 201, but the method signature accepts only 1 parameter. --- NetscapeBookmarkParser.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NetscapeBookmarkParser.php b/NetscapeBookmarkParser.php index a6a6fe3..cb163ef 100644 --- a/NetscapeBookmarkParser.php +++ b/NetscapeBookmarkParser.php @@ -196,9 +196,9 @@ public function parseString(string $bookmarkString): array $this->logger->debug('[#' . $line_no . '] Date: ' . $this->items[$i]['time']); if (preg_match('/(public|published|pub)="(.*?)"/i', $line, $m9)) { - $this->items[$i]['pub'] = $this->parseBoolean($m9[2], false) ? 1 : 0; + $this->items[$i]['pub'] = $this->parseBoolean($m9[2]) ? 1 : 0; } elseif (preg_match('/(private|shared)="(.*?)"/i', $line, $m10)) { - $this->items[$i]['pub'] = $this->parseBoolean($m10[2], true) ? 0 : 1; + $this->items[$i]['pub'] = $this->parseBoolean($m10[2]) ? 0 : 1; } else { $this->items[$i]['pub'] = $this->defaultPub; }