Skip to content

Commit

Permalink
fixing Deprecated: file_get_contents(): Passing null to parameter #2
Browse files Browse the repository at this point in the history
…($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
  • Loading branch information
geoalexidis committed Jun 22, 2022
1 parent e9e24e7 commit 844f996
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Zend/Translate/Adapter/Tmx.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 844f996

Please sign in to comment.