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 44 * See COPYING.txt for license details.
55 */
66
7- declare (strict_types=1 );
8-
97namespace Magento \Framework \Filesystem \Io ;
108
119use Magento \Framework \Exception \LocalizedException ;
@@ -444,7 +442,7 @@ public function cd($dir)
444442 public function read ($ filename , $ dest = null )
445443 {
446444 $ result = false ;
447-
445+
448446 $ this ->_cwd ();
449447 if ($ dest === null ) {
450448 $ result = @file_get_contents ($ filename );
@@ -470,7 +468,7 @@ public function read($filename, $dest = null)
470468 */
471469 public function write ($ filename , $ src , $ mode = null )
472470 {
473- if (is_string ($ src ) && ctype_print ( $ src ) && @is_readable ($ src )) {
471+ if (is_string ($ src ) && @is_readable ($ src )) {
474472 $ src = realpath ($ src );
475473 $ srcIsFile = true ;
476474 } elseif (is_string ($ src ) || is_resource ($ src )) {
You can’t perform that action at this time.
0 commit comments