From 844f99647d388ac915b36737316282966cf6340d Mon Sep 17 00:00:00 2001 From: Georgios <11179990+geoalexidis@users.noreply.github.com> Date: Wed, 22 Jun 2022 10:34:25 +0200 Subject: [PATCH] fixing Deprecated: file_get_contents(): Passing null to parameter #2 ($use_include_path) of type bool is deprecated in \vendor\shardj\zf1-future\library\Zend\Translate\Adapter\Tmx.php on line 230. passing now explicit false instead of null --- library/Zend/Translate/Adapter/Tmx.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Zend/Translate/Adapter/Tmx.php b/library/Zend/Translate/Adapter/Tmx.php index ccc697e7d0..fd396c8474 100644 --- a/library/Zend/Translate/Adapter/Tmx.php +++ b/library/Zend/Translate/Adapter/Tmx.php @@ -227,7 +227,7 @@ protected function _contentElement($file, $data) */ protected function _findEncoding($filename) { - $file = file_get_contents($filename, null, null, 0, 100); + $file = file_get_contents($filename, false, null, 0, 100); if (strpos($file, "encoding") !== false) { $encoding = substr($file, strpos($file, "encoding") + 9); $encoding = substr($encoding, 1, strpos($encoding, $encoding[0], 1) - 1);