File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- <?php declare (strict_types=1 );
1+ <?php
2+ declare (strict_types=1 );
23
34namespace Loki \Components \Filter ;
45
56use Magento \Framework \ObjectManagerInterface ;
67
7- class FilterScopeFactory
8+ final class FilterScopeFactory
89{
910 public function __construct (
1011 private ObjectManagerInterface $ objectManager ,
1112 ){
1213 }
1314
14- /**
15- * @phpstan-return FilterScope
16- */
17- public function create (): FilterScope
15+ public function create (array $ data = []): FilterScope
1816 {
19- /** @var FilterScope $filterScope */
20- $ filterScope = $ this ->objectManager ->create (FilterScope::class);
21- return $ filterScope ;
17+ return $ this ->objectManager ->create (FilterScope::class, $ data );
2218 }
2319}
Original file line number Diff line number Diff line change 3737 "functional" : 0
3838 },
3939 "phpcs_severity" : " 9" ,
40- "phpstan_level" : " 2 "
40+ "phpstan_level" : " 1 "
4141}
You can’t perform that action at this time.
0 commit comments