Skip to content

Commit

Permalink
Merge pull request #1 from namnguyenthanhwork/master
Browse files Browse the repository at this point in the history
fix strict type, add Laminas and remove Zend
  • Loading branch information
mrkhoa99 authored Aug 2, 2023
2 parents 6a7b108 + 58073df commit dcff75a
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 22 deletions.
12 changes: 6 additions & 6 deletions Block/PostContent.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
use Magento\Framework\Registry;
use Magento\Framework\View\Element\Template;
use Zend_Db_Select;
use Zend_Filter_Exception;
use Zend_Filter_Interface;
use Laminas\Filter\Exception as FilterException;
use Laminas\Filter\FilterInterface as LaminasFilter;

class PostContent extends AbstractBlock
{
Expand All @@ -38,7 +38,7 @@ class PostContent extends AbstractBlock
protected $postFactory;

/**
* @var Zend_Filter_Interface
* @var LaminasFilter
*/
protected $templateProcessor;

Expand Down Expand Up @@ -81,7 +81,7 @@ class PostContent extends AbstractBlock
* View constructor.
* @param Template\Context $context
* @param PostFactory $postFactory
* @param Zend_Filter_Interface $templateProcessor
* @param LaminasFilter $templateProcessor
* @param Config $config
* @param Registry $registry
* @param \Magento\Framework\View\Page\Config $pageConfig
Expand All @@ -97,7 +97,7 @@ class PostContent extends AbstractBlock
public function __construct(
Template\Context $context,
PostFactory $postFactory,
Zend_Filter_Interface $templateProcessor,
LaminasFilter $templateProcessor,
Config $config,
Registry $registry,
\Magento\Framework\View\Page\Config $pageConfig,
Expand Down Expand Up @@ -215,7 +215,7 @@ public function getTags()
/**
* @param $string
* @return mixed
* @throws Zend_Filter_Exception
* @throws FilterException
*/
public function filterOutputHtml($string)
{
Expand Down
8 changes: 4 additions & 4 deletions Model/ImageUploader.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ public function __construct(
DateTime $date,
Random $random,
LoggerInterface $logger,
$baseTmpPath,
$basePath,
$allowedExtensions,
$allowedMimeTypes = []
string $baseTmpPath,
string $basePath,
array $allowedExtensions,
array $allowedMimeTypes = []
) {
parent::__construct(
$coreFileStorageDatabase,
Expand Down
6 changes: 3 additions & 3 deletions Ui/DataProvider/AuthorDataProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ class AuthorDataProvider extends AbstractDataProvider
* @param array $data
*/
public function __construct(
$name,
$primaryFieldName,
$requestFieldName,
string $name,
string $primaryFieldName,
string $requestFieldName,
File $fileInfo,
CollectionFactory $collectionFactory,
DataPersistorInterface $dataPersistor,
Expand Down
6 changes: 3 additions & 3 deletions Ui/DataProvider/CategoryDataProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ class CategoryDataProvider extends AbstractDataProvider
* @param array $data
*/
public function __construct(
$name,
$primaryFieldName,
$requestFieldName,
string $name,
string $primaryFieldName,
string $requestFieldName,
CollectionFactory $collectionFactory,
DataPersistorInterface $dataPersistor,
Registry $coreRegistry,
Expand Down
6 changes: 3 additions & 3 deletions Ui/DataProvider/PostDataProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ class PostDataProvider extends AbstractDataProvider
* @param array $data
*/
public function __construct(
$name,
$primaryFieldName,
$requestFieldName,
string $name,
string $primaryFieldName,
string $requestFieldName,
Registry $coreRegistry,
File $fileInfo,
CollectionFactory $collectionFactory,
Expand Down
6 changes: 3 additions & 3 deletions Ui/DataProvider/TagDataProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ class TagDataProvider extends AbstractDataProvider
* @param array $data
*/
public function __construct(
$name,
$primaryFieldName,
$requestFieldName,
string $name,
string $primaryFieldName,
string $requestFieldName,
DataPersistorInterface $dataPersistor,
CollectionFactory $collectionFactory,
array $meta = [],
Expand Down

0 comments on commit dcff75a

Please sign in to comment.