From a3a036d00b665261458f391767f0f7192c3ea372 Mon Sep 17 00:00:00 2001 From: Vinod Raut Date: Thu, 9 Apr 2020 19:24:21 +0530 Subject: [PATCH] Update Scanner.php handled generated notice on php 7.4 if its not file by by insuring it should be file --- src/Scanner/Scanner.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Scanner/Scanner.php b/src/Scanner/Scanner.php index 91a5ed0d..f59aff41 100644 --- a/src/Scanner/Scanner.php +++ b/src/Scanner/Scanner.php @@ -77,6 +77,12 @@ protected function saveTranslation( */ protected static function readFile(string $file): string { + // handled generated notice on php 7.4 if its not file + // by insuring it should be file + if(!is_file($file)) { + return ''; + } + $length = filesize($file); if (!($fd = fopen($file, 'rb'))) {