Skip to content

Commit 702a318

Browse files
author
Viktor Tymchynskyi
committed
MAGETWO-38417: Table Rates shipping method does not work
- Fix annotation
1 parent 041ddf6 commit 702a318

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

lib/internal/Magento/Framework/Filesystem/Driver/File.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
use Magento\Framework\Exception\FileSystemException;
1111
use Magento\Framework\Filesystem\DriverInterface;
12-
use Magento\Framework\Phrase;
1312

1413
class File implements DriverInterface
1514
{
@@ -640,7 +639,6 @@ public function fileWrite($resource, $data)
640639
* @param array $data
641640
* @param string $delimiter
642641
* @param string $enclosure
643-
* @var $value string|Phrase
644642
* @return int
645643
* @throws FileSystemException
646644
*/
@@ -651,6 +649,7 @@ public function filePutCsv($resource, array $data, $delimiter = ',', $enclosure
651649
* @see https://bugzilla.mozilla.org/show_bug.cgi?id=1054702
652650
*/
653651
foreach ($data as $key => $value) {
652+
/** @var $value string|\Magento\Framework\Phrase */
654653
$value = (string)$value;
655654
if (isset($value[0]) && $value[0] === '=') {
656655
$data[$key] = ' ' . $value;

lib/internal/Magento/Framework/Filesystem/Io/File.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,6 @@ public function streamWrite($str)
170170
* @param array $row
171171
* @param string $delimiter
172172
* @param string $enclosure
173-
* @var $value string|Phrase
174173
* @return int|false The length of the written string or false
175174
*/
176175
public function streamWriteCsv(array $row, $delimiter = ',', $enclosure = '"')
@@ -183,6 +182,7 @@ public function streamWriteCsv(array $row, $delimiter = ',', $enclosure = '"')
183182
* @see https://bugzilla.mozilla.org/show_bug.cgi?id=1054702
184183
*/
185184
foreach ($row as $key => $value) {
185+
/** @var $value string|\Magento\Framework\Phrase */
186186
$value = (string)$value;
187187
if (isset($value[0]) && $value[0] === '=') {
188188
$row[$key] = ' ' . $value;

0 commit comments

Comments
 (0)