Skip to content

Commit 074a1a8

Browse files
authored
Merge branch 'OpenMage:main' into OAuth2
2 parents 80e2cd6 + fae22f5 commit 074a1a8

File tree

119 files changed

+576
-282
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

119 files changed

+576
-282
lines changed

.php-cs-fixer.dist.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@
6363
'no_trailing_whitespace_in_comment' => true,
6464
// Remove trailing whitespace at the end of blank lines.
6565
'no_whitespace_in_blank_line' => true,
66+
// Adds or removes ? before single type declarations or |null at the end of union types when parameters have a default null value.
67+
'nullable_type_declaration_for_default_null_value' => true,
6668
// Orders the elements of classes/interfaces/traits.
6769
'ordered_class_elements' => false,
6870
// Ordering `use` statements.

app/Mage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ public static function getOpenMageVersionInfo(): array
213213
if (self::getOpenMageMajorVersion() === 20) {
214214
return [
215215
'major' => '20',
216-
'minor' => '9',
216+
'minor' => '10',
217217
'patch' => '0',
218218
'stability' => '', // beta,alpha,rc
219219
'number' => '', // 1,2,3,0.3.7,x.7.z.92 @see https://semver.org/#spec-item-9

app/code/core/Mage/Admin/Model/Acl/Assert/Ip.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ class Mage_Admin_Model_Acl_Assert_Ip implements Zend_Acl_Assert_Interface
3232
*/
3333
public function assert(
3434
Mage_Admin_Model_Acl $acl,
35-
Mage_Admin_Model_Acl_Role $role = null,
36-
Mage_Admin_Model_Acl_Resource $resource = null,
35+
?Mage_Admin_Model_Acl_Role $role = null,
36+
?Mage_Admin_Model_Acl_Resource $resource = null,
3737
$privilege = null
3838
) {
3939
return $this->_isCleanIP(Mage::helper('core/http')->getRemoteAddr());

app/code/core/Mage/Admin/Model/Acl/Assert/Time.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ class Mage_Admin_Model_Acl_Assert_Time implements Zend_Acl_Assert_Interface
3232
*/
3333
public function assert(
3434
Mage_Admin_Model_Acl $acl,
35-
Mage_Admin_Model_Acl_Role $role = null,
36-
Mage_Admin_Model_Acl_Resource $resource = null,
35+
?Mage_Admin_Model_Acl_Role $role = null,
36+
?Mage_Admin_Model_Acl_Resource $resource = null,
3737
$privilege = null
3838
) {
3939
return $this->_isCleanTime(time());

app/code/core/Mage/Admin/Model/Redirectpolicy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function __construct($parameters = [])
4545
*/
4646
public function getRedirectUrl(
4747
Mage_Admin_Model_User $user,
48-
Zend_Controller_Request_Http $request = null,
48+
?Zend_Controller_Request_Http $request = null,
4949
$alternativeUrl = null
5050
) {
5151
if (empty($request)) {

app/code/core/Mage/Admin/Model/Roles.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public function getRoleUsers()
123123
* @return Varien_Simplexml_Element|false|array
124124
*/
125125
protected function _buildResourcesArray(
126-
Varien_Simplexml_Element $resource = null,
126+
?Varien_Simplexml_Element $resource = null,
127127
$parentName = null,
128128
$level = 0,
129129
$represent2Darray = null,

app/code/core/Mage/Adminhtml/Block/Catalog/Product/Composite/Configure.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function getProduct()
5454
* @param Mage_Catalog_Model_Product|null $product
5555
* @return $this
5656
*/
57-
public function setProduct(Mage_Catalog_Model_Product $product = null)
57+
public function setProduct(?Mage_Catalog_Model_Product $product = null)
5858
{
5959
$this->_product = $product;
6060
return $this;

app/code/core/Mage/Adminhtml/Block/Customer/Edit/Tabs.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ protected function _beforeToHtml()
8282
]);
8383
}
8484

85-
if (Mage::getSingleton('admin/session')->isAllowed('catalog/reviews_ratings')) {
85+
if (Mage::helper('core')->isModuleOutputEnabled('Mage_Review') && Mage::getSingleton('admin/session')->isAllowed('catalog/reviews_ratings')) {
8686
$this->addTab('reviews', [
8787
'label' => Mage::helper('customer')->__('Product Reviews'),
8888
'class' => 'ajax',

app/code/core/Mage/Adminhtml/Block/Newsletter/Template/Grid.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,16 @@
2121
*/
2222
class Mage_Adminhtml_Block_Newsletter_Template_Grid extends Mage_Adminhtml_Block_Widget_Grid
2323
{
24+
public function __construct()
25+
{
26+
parent::__construct();
27+
$this->setId('newsletterTemplateGrid');
28+
$this->setDefaultSort('template_code');
29+
$this->setDefaultDir('desc');
30+
$this->setSaveParametersInSession(true);
31+
$this->setUseAjax(true);
32+
}
33+
2434
protected function _construct()
2535
{
2636
$this->setEmptyText(Mage::helper('newsletter')->__('No Templates Found'));

app/code/core/Mage/Adminhtml/Controller/Action.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ protected function _redirect($path, $arguments = [])
367367
return $this;
368368
}
369369

370-
protected function _forward($action, $controller = null, $module = null, array $params = null)
370+
protected function _forward($action, $controller = null, $module = null, ?array $params = null)
371371
{
372372
$this->_getSession()->setIsUrlNotice($this->getFlag('', self::FLAG_IS_URLS_CHECKED));
373373
return parent::_forward($action, $controller, $module, $params);

0 commit comments

Comments
 (0)