File tree Expand file tree Collapse file tree 5 files changed +11
-3
lines changed
lib/internal/Magento/Framework/App Expand file tree Collapse file tree 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
4343 <link>http://magento.com/rss/link</link>
4444 <description><![CDATA[Feed Description]]></description>
4545 <pubDate>Sat, 22 Apr 2017 13:21:12 +0200</pubDate>
46- <generator>Zend_Feed </generator>
46+ <generator>Zend\Feed </generator>
4747 <docs>http://blogs.law.harvard.edu/tech/rss</docs>
4848 <item>
4949 <title><![CDATA[Feed 1 Title]]></title>
Original file line number Diff line number Diff line change 33 * Copyright © Magento, Inc. All rights reserved.
44 * See COPYING.txt for license details.
55 */
6+ declare (strict_types=1 );
7+
68namespace Magento \Framework \App ;
79
810use Zend \Feed \Writer \FeedFactory ;
Original file line number Diff line number Diff line change 33 * Copyright © Magento, Inc. All rights reserved.
44 * See COPYING.txt for license details.
55 */
6+ declare (strict_types=1 );
7+
68namespace Magento \Framework \App ;
79
810use Magento \Framework \ObjectManagerInterface ;
@@ -46,7 +48,7 @@ public function __construct(
4648 /**
4749 * {@inheritdoc}
4850 */
49- public function create (array $ data , $ format = FeedFactoryInterface::FORMAT_RSS ) : FeedInterface
51+ public function create (array $ data , string $ format = FeedFactoryInterface::FORMAT_RSS ) : FeedInterface
5052 {
5153 if (!isset ($ this ->formats [$ format ])) {
5254 throw new \Magento \Framework \Exception \InputException (
Original file line number Diff line number Diff line change 33 * Copyright © Magento, Inc. All rights reserved.
44 * See COPYING.txt for license details.
55 */
6+ declare (strict_types=1 );
7+
68namespace Magento \Framework \App ;
79
810/**
@@ -24,5 +26,5 @@ interface FeedFactoryInterface
2426 * @param string $format
2527 * @return FeedInterface
2628 */
27- public function create (array $ data , $ format = self ::FORMAT_RSS ) : FeedInterface ;
29+ public function create (array $ data , string $ format = self ::FORMAT_RSS ) : FeedInterface ;
2830}
Original file line number Diff line number Diff line change 33 * Copyright © Magento, Inc. All rights reserved.
44 * See COPYING.txt for license details.
55 */
6+ declare (strict_types=1 );
7+
68namespace Magento \Framework \App ;
79
810/**
You can’t perform that action at this time.
0 commit comments