Skip to content

Commit b2bcbba

Browse files
author
Bibu Mathew
committed
MAGETWO-31968: PHP Fatal error: Call to a member function addStreamLog() on a non-object
- Updated the abstract constructor with logger type
1 parent 467b0b5 commit b2bcbba

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lib/internal/Magento/Framework/Image/Adapter/AbstractAdapter.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,11 @@ abstract public function getColorAt($x, $y);
263263
* @param \Psr\Log\LoggerInterface $logger
264264
* @param array $data
265265
*/
266-
public function __construct(\Magento\Framework\Filesystem $filesystem, $logger, array $data = [])
267-
{
266+
public function __construct(
267+
\Magento\Framework\Filesystem $filesystem,
268+
\Psr\Log\LoggerInterface $logger,
269+
array $data = []
270+
) {
268271
$this->_filesystem = $filesystem;
269272
$this->logger = $logger;
270273
$this->directoryWrite = $this->_filesystem->getDirectoryWrite(DirectoryList::ROOT);

0 commit comments

Comments
 (0)