File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
lib/internal/Magento/Framework/Filesystem/Io Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 4
4
* See COPYING.txt for license details.
5
5
*/
6
6
7
- declare (strict_types=1 );
8
-
9
7
namespace Magento \Framework \Filesystem \Io ;
10
8
11
9
use Magento \Framework \Exception \LocalizedException ;
@@ -444,7 +442,7 @@ public function cd($dir)
444
442
public function read ($ filename , $ dest = null )
445
443
{
446
444
$ result = false ;
447
-
445
+
448
446
$ this ->_cwd ();
449
447
if ($ dest === null ) {
450
448
$ result = @file_get_contents ($ filename );
@@ -470,7 +468,7 @@ public function read($filename, $dest = null)
470
468
*/
471
469
public function write ($ filename , $ src , $ mode = null )
472
470
{
473
- if (is_string ($ src ) && ctype_print ( $ src ) && @is_readable ($ src )) {
471
+ if (is_string ($ src ) && @is_readable ($ src )) {
474
472
$ src = realpath ($ src );
475
473
$ srcIsFile = true ;
476
474
} elseif (is_string ($ src ) || is_resource ($ src )) {
You can’t perform that action at this time.
0 commit comments