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'))) {