Skip to content

Commit

Permalink
Fix some phpstan issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jissereitsma committed Aug 26, 2024
1 parent dec189a commit 226cc3f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Block/PictureFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function __construct(
* @param Image $originalImage
* @param Image[] $images
* @param string $htmlTag
* @param bool $isDataSrc
* @param string $srcAttribute
* @return Picture
*/
public function create(
Expand Down
17 changes: 6 additions & 11 deletions Image/ImageFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,16 @@

namespace Yireo\NextGenImages\Image;

use Magento\Framework\Exception\FileSystemException;
use Magento\Framework\Exception\NoSuchEntityException;
use Magento\Framework\ObjectManagerInterface;
use Magento\Framework\View\Asset\File\NotFoundException;
use Yireo\NextGenImages\Util\UrlConvertor;

class ImageFactory
{
/**
* @var ObjectManagerInterface
*/
private $objectManager;
private ObjectManagerInterface $objectManager;

/**
* @var UrlConvertor
*/
private $urlConvertor;
private UrlConvertor $urlConvertor;

/**
* @param ObjectManagerInterface $objectManager
Expand All @@ -33,7 +28,7 @@ public function __construct(
/**
* @param string $path
* @return Image
* @throws NotFoundException
* @throws NoSuchEntityException
*/
public function createFromPath(string $path): Image
{
Expand All @@ -44,7 +39,7 @@ public function createFromPath(string $path): Image
/**
* @param string $url
* @return Image
* @throws NotFoundException
* @throws FileSystemException
*/
public function createFromUrl(string $url): Image
{
Expand Down

0 comments on commit 226cc3f

Please sign in to comment.