Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit 3362a14

Browse files
author
Joan He
committed
MAGETWO-72139: Add support for PHP 7.2.x - Magento 2.3.0
- fix null passed to get_class() issue in PHP 7.2
1 parent c9dee2e commit 3362a14

File tree

1 file changed

+1
-1
lines changed
  • lib/internal/Magento/Framework/Filesystem/Driver

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/Filesystem/Driver/File.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ public function copy($source, $destination, DriverInterface $targetDriver = null
351351
public function symlink($source, $destination, DriverInterface $targetDriver = null)
352352
{
353353
$result = false;
354-
if (get_class($targetDriver) == get_class($this)) {
354+
if ($targetDriver === null || get_class($targetDriver) == get_class($this)) {
355355
$result = @symlink($this->getScheme() . $source, $destination);
356356
}
357357
if (!$result) {

0 commit comments

Comments
 (0)