File tree 5 files changed +11
-3
lines changed
lib/internal/Magento/Framework/App
5 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ class RssTest extends \PHPUnit\Framework\TestCase
43
43
<link>http://magento.com/rss/link</link>
44
44
<description><![CDATA[Feed Description]]></description>
45
45
<pubDate>Sat, 22 Apr 2017 13:21:12 +0200</pubDate>
46
- <generator>Zend_Feed </generator>
46
+ <generator>Zend\Feed </generator>
47
47
<docs>http://blogs.law.harvard.edu/tech/rss</docs>
48
48
<item>
49
49
<title><![CDATA[Feed 1 Title]]></title>
Original file line number Diff line number Diff line change 3
3
* Copyright © Magento, Inc. All rights reserved.
4
4
* See COPYING.txt for license details.
5
5
*/
6
+ declare (strict_types=1 );
7
+
6
8
namespace Magento \Framework \App ;
7
9
8
10
use Zend \Feed \Writer \FeedFactory ;
Original file line number Diff line number Diff line change 3
3
* Copyright © Magento, Inc. All rights reserved.
4
4
* See COPYING.txt for license details.
5
5
*/
6
+ declare (strict_types=1 );
7
+
6
8
namespace Magento \Framework \App ;
7
9
8
10
use Magento \Framework \ObjectManagerInterface ;
@@ -46,7 +48,7 @@ public function __construct(
46
48
/**
47
49
* {@inheritdoc}
48
50
*/
49
- public function create (array $ data , $ format = FeedFactoryInterface::FORMAT_RSS ) : FeedInterface
51
+ public function create (array $ data , string $ format = FeedFactoryInterface::FORMAT_RSS ) : FeedInterface
50
52
{
51
53
if (!isset ($ this ->formats [$ format ])) {
52
54
throw new \Magento \Framework \Exception \InputException (
Original file line number Diff line number Diff line change 3
3
* Copyright © Magento, Inc. All rights reserved.
4
4
* See COPYING.txt for license details.
5
5
*/
6
+ declare (strict_types=1 );
7
+
6
8
namespace Magento \Framework \App ;
7
9
8
10
/**
@@ -24,5 +26,5 @@ interface FeedFactoryInterface
24
26
* @param string $format
25
27
* @return FeedInterface
26
28
*/
27
- public function create (array $ data , $ format = self ::FORMAT_RSS ) : FeedInterface ;
29
+ public function create (array $ data , string $ format = self ::FORMAT_RSS ) : FeedInterface ;
28
30
}
Original file line number Diff line number Diff line change 3
3
* Copyright © Magento, Inc. All rights reserved.
4
4
* See COPYING.txt for license details.
5
5
*/
6
+ declare (strict_types=1 );
7
+
6
8
namespace Magento \Framework \App ;
7
9
8
10
/**
You can’t perform that action at this time.
0 commit comments