Skip to content

Commit 930d880

Browse files
committed
Merge remote-tracking branch '72engcom/libs-upgrade' into MAGETWO-89235-credis-zendview
2 parents 6f301d7 + 4d06c0d commit 930d880

File tree

16 files changed

+61
-34
lines changed

16 files changed

+61
-34
lines changed

app/code/Magento/Downloadable/Controller/Download.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ protected function _processDownload($path, $resourceType)
6464
$contentDisposition = $helper->getContentDisposition();
6565
if (!$contentDisposition || in_array($contentType, $this->disallowedContentTypes)) {
6666
// For security reasons we force browsers to download the file instead of opening it.
67-
$contentDisposition = \Zend_Mime::DISPOSITION_ATTACHMENT;
67+
$contentDisposition = \Magento\Framework\HTTP\Mime::DISPOSITION_ATTACHMENT;
6868
}
6969

7070
$response->setHeader('Content-Disposition', $contentDisposition . '; filename=' . $fileName);

app/code/Magento/Downloadable/Test/Unit/Controller/Download/LinkTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -492,8 +492,8 @@ public function linkNotAvailableDataProvider()
492492
public function downloadTypesDataProvider()
493493
{
494494
return [
495-
['mimeType' => 'text/html', 'disposition' => \Zend_Mime::DISPOSITION_ATTACHMENT],
496-
['mimeType' => 'image/jpeg', 'disposition' => \Zend_Mime::DISPOSITION_INLINE],
495+
['mimeType' => 'text/html', 'disposition' => \Magento\Framework\HTTP\Mime::DISPOSITION_ATTACHMENT],
496+
['mimeType' => 'image/jpeg', 'disposition' => \Magento\Framework\HTTP\Mime::DISPOSITION_INLINE],
497497
];
498498
}
499499
}

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"tubalmartin/cssmin": "4.1.1",
6060
"webonyx/graphql-php": "^0.11.1",
6161
"zendframework/zend-captcha": "^2.7.1",
62-
"zendframework/zend-code": "~3.1.0",
62+
"zendframework/zend-code": "~3.3.0",
6363
"zendframework/zend-config": "^2.6.0",
6464
"zendframework/zend-console": "^2.6.0",
6565
"zendframework/zend-crypt": "^2.6.0",
@@ -79,7 +79,7 @@
7979
"zendframework/zend-server": "^2.6.1",
8080
"zendframework/zend-servicemanager": "^2.7.8",
8181
"zendframework/zend-session": "^2.7.3",
82-
"zendframework/zend-soap": "^2.6.0",
82+
"zendframework/zend-soap": "^2.7.0",
8383
"zendframework/zend-stdlib": "^2.7.7",
8484
"zendframework/zend-text": "^2.6.0",
8585
"zendframework/zend-uri": "^2.5.1",

composer.lock

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dev/tests/integration/testsuite/Magento/Framework/Code/_expected/SourceClassWithNamespaceExtensionInterfaceFactory.php.sample

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class SourceClassWithNamespaceExtensionInterfaceFactory
4141
* @param array $data
4242
* @return \Magento\Framework\Code\GeneratorTest\SourceClassWithNamespaceExtension
4343
*/
44-
public function create(array $data = array())
44+
public function create(array $data = [])
4545
{
4646
return $this->_objectManager->create($this->_instanceName, $data);
4747
}

dev/tests/integration/testsuite/Magento/Framework/Code/_expected/SourceClassWithNamespaceFactory.php.sample

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class SourceClassWithNamespaceFactory
4141
* @param array $data
4242
* @return \Magento\Framework\Code\GeneratorTest\SourceClassWithNamespace
4343
*/
44-
public function create(array $data = array())
44+
public function create(array $data = [])
4545
{
4646
return $this->_objectManager->create($this->_instanceName, $data);
4747
}

dev/tests/integration/testsuite/Magento/Framework/Code/_expected/SourceClassWithNamespaceInterceptor.php.sample

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Interceptor extends \Magento\Framework\Code\GeneratorTest\SourceClassWithN
1818
/**
1919
* {@inheritdoc}
2020
*/
21-
public function publicChildMethod(\Zend\Code\Generator\ClassGenerator $classGenerator, $param1 = '', $param2 = '\\', $param3 = '\'', array $array = array())
21+
public function publicChildMethod(\Zend\Code\Generator\ClassGenerator $classGenerator, $param1 = '', $param2 = '\\', $param3 = '\'', array $array = [])
2222
{
2323
$pluginInfo = $this->pluginList->getNext($this->subjectType, 'publicChildMethod');
2424
if (!$pluginInfo) {
@@ -57,7 +57,7 @@ class Interceptor extends \Magento\Framework\Code\GeneratorTest\SourceClassWithN
5757
/**
5858
* {@inheritdoc}
5959
*/
60-
public function publicParentMethod(\Zend\Code\Generator\DocBlockGenerator $docBlockGenerator, $param1 = '', $param2 = '\\', $param3 = '\'', array $array = array())
60+
public function publicParentMethod(\Zend\Code\Generator\DocBlockGenerator $docBlockGenerator, $param1 = '', $param2 = '\\', $param3 = '\'', array $array = [])
6161
{
6262
$pluginInfo = $this->pluginList->getNext($this->subjectType, 'publicParentMethod');
6363
if (!$pluginInfo) {

dev/tests/integration/testsuite/Magento/Framework/Code/_expected/SourceClassWithNamespaceProxy.php.sample

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class Proxy extends \Magento\Framework\Code\GeneratorTest\SourceClassWithNamespa
9393
/**
9494
* {@inheritdoc}
9595
*/
96-
public function publicChildMethod(\Zend\Code\Generator\ClassGenerator $classGenerator, $param1 = '', $param2 = '\\', $param3 = '\'', array $array = array())
96+
public function publicChildMethod(\Zend\Code\Generator\ClassGenerator $classGenerator, $param1 = '', $param2 = '\\', $param3 = '\'', array $array = [])
9797
{
9898
return $this->_getSubject()->publicChildMethod($classGenerator, $param1, $param2, $param3, $array);
9999
}
@@ -117,7 +117,7 @@ class Proxy extends \Magento\Framework\Code\GeneratorTest\SourceClassWithNamespa
117117
/**
118118
* {@inheritdoc}
119119
*/
120-
public function publicParentMethod(\Zend\Code\Generator\DocBlockGenerator $docBlockGenerator, $param1 = '', $param2 = '\\', $param3 = '\'', array $array = array())
120+
public function publicParentMethod(\Zend\Code\Generator\DocBlockGenerator $docBlockGenerator, $param1 = '', $param2 = '\\', $param3 = '\'', array $array = [])
121121
{
122122
return $this->_getSubject()->publicParentMethod($docBlockGenerator, $param1, $param2, $param3, $array);
123123
}

dev/tests/integration/testsuite/Magento/Wishlist/Controller/IndexTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,7 @@ public function testSendAction()
169169
\Magento\TestFramework\Mail\Template\TransportBuilderMock::class
170170
);
171171

172-
$actualResult = \Zend_Mime_Decode::decodeQuotedPrintable(
173-
$transportBuilder->getSentMessage()->getRawMessage()
174-
);
172+
$actualResult = quoted_printable_decode($transportBuilder->getSentMessage()->getRawMessage());
175173

176174
$this->assertStringMatchesFormat(
177175
'%A' . $this->_customerViewHelper->getCustomerName($this->_customerSession->getCustomerDataObject())

dev/tests/static/testsuite/Magento/Test/Legacy/_files/obsolete_classes.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4234,5 +4234,6 @@
42344234
'Magento\Elasticsearch\Test\Unit\Model\SearchAdapter\ConnectionManagerTest',
42354235
'Magento\Elasticsearch\Test\Unit\SearchAdapter\ConnectionManagerTest'
42364236
],
4237-
['Zend_Feed', 'Zend\Feed']
4237+
['Zend_Feed', 'Zend\Feed'],
4238+
['Zend_Mime', 'Magento\Framework\HTTP\Mime'],
42384239
];

0 commit comments

Comments
 (0)