Skip to content

Commit 910fae4

Browse files
committed
Merge pull request #62 from drobinson/php-7-support
PHP 7 support
2 parents 8fd8987 + a07ad9c commit 910fae4

File tree

7 files changed

+8
-7
lines changed

7 files changed

+8
-7
lines changed

app/code/core/Mage/Core/Model/Layout.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ public function getOutput()
552552
$out = '';
553553
if (!empty($this->_output)) {
554554
foreach ($this->_output as $callback) {
555-
$out .= $this->getBlock($callback[0])->$callback[1]();
555+
$out .= $this->getBlock($callback[0])->{$callback[1]}();
556556
}
557557
}
558558

app/code/core/Mage/Core/Model/Resource/Session.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ public function read($sessId)
215215

216216
$data = $this->_read->fetchOne($select, $bind);
217217

218-
return $data;
218+
return (string)$data;
219219
}
220220

221221
/**

app/code/core/Mage/ImportExport/Model/Export/Entity/Customer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ public function filterAttributeCollection(Mage_Eav_Model_Resource_Entity_Attribu
247247
$data = $this->_attributeOverrides[$attribute->getAttributeCode()];
248248

249249
if (isset($data['options_method']) && method_exists($this, $data['options_method'])) {
250-
$data['filter_options'] = $this->$data['options_method']();
250+
$data['filter_options'] = $this->{$data['options_method']}();
251251
}
252252
$attribute->addData($data);
253253
}

app/code/core/Mage/ImportExport/Model/Export/Entity/Product/Type/Abstract.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public function overrideAttribute(Mage_Catalog_Model_Resource_Eav_Attribute $att
9696
$data = $this->_attributeOverrides[$attribute->getAttributeCode()];
9797

9898
if (isset($data['options_method']) && method_exists($this, $data['options_method'])) {
99-
$data['filter_options'] = $this->$data['options_method']();
99+
$data['filter_options'] = $this->{$data['options_method']}();
100100
}
101101
$attribute->addData($data);
102102

app/code/core/Mage/ImportExport/Model/Import/Uploader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ protected function _validateFile()
132132
//run validate callbacks
133133
foreach ($this->_validateCallbacks as $params) {
134134
if (is_object($params['object']) && method_exists($params['object'], $params['method'])) {
135-
$params['object']->$params['method']($filePath);
135+
$params['object']->{$params['method']}($filePath);
136136
}
137137
}
138138
}

app/code/core/Mage/Sales/etc/config.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1218,7 +1218,7 @@
12181218
</subtotal>
12191219
<shipping>
12201220
<class>sales/quote_address_total_shipping</class>
1221-
<after>subtotal,freeshipping,tax_subtotal</after>
1221+
<after>subtotal,freeshipping,tax_subtotal,msrp</after>
12221222
<before>grand_total</before>
12231223
</shipping>
12241224
<grand_total>
@@ -1227,6 +1227,7 @@
12271227
</grand_total>
12281228
<msrp>
12291229
<class>sales/quote_address_total_msrp</class>
1230+
<before>grand_total</before>
12301231
</msrp>
12311232
</totals>
12321233
<nominal_totals>

lib/Varien/File/Uploader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ protected function _validateFile()
271271
//run validate callbacks
272272
foreach ($this->_validateCallbacks as $params) {
273273
if (is_object($params['object']) && method_exists($params['object'], $params['method'])) {
274-
$params['object']->$params['method']($this->_file['tmp_name']);
274+
$params['object']->{$params['method']}($this->_file['tmp_name']);
275275
}
276276
}
277277
}

0 commit comments

Comments
 (0)