From 16ff5ca0fbaa9f76e9629019ecc8472a7c0d56d7 Mon Sep 17 00:00:00 2001 From: mirko-pagliai Date: Sun, 7 Jan 2024 12:40:34 +0100 Subject: [PATCH] removed some `@` --- src/Utility/LinkScanner.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Utility/LinkScanner.php b/src/Utility/LinkScanner.php index 60a0b30..31eea4c 100644 --- a/src/Utility/LinkScanner.php +++ b/src/Utility/LinkScanner.php @@ -445,7 +445,9 @@ public function scan() $this->dispatchEvent('LinkScanner.scanCompleted', [$this->startTime, $this->endTime, $this->ResultScan]); } finally { ini_set('xdebug.max_nesting_level', (string)$maxNestingLevel); - @unlink($this->lockFile); + if (file($this->lockFile)) { + unlink($this->lockFile); + } } return $this;