Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix PHP8 Deprecated: Required parameter $A follows optional parameter #1392

Merged
merged 2 commits into from
May 23, 2021
Merged

Fix PHP8 Deprecated: Required parameter $A follows optional parameter #1392

merged 2 commits into from
May 23, 2021

Conversation

sreichel
Copy link
Contributor

Description (*)

Should fix all "Required parameter $A follows optional parameter $B warnings.

Manual testing scenarios (*)

  1. https://github.com/OpenMage/magento-lts/pull/1391/checks?check_run_id=1688556992

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All automated tests passed successfully (all builds are green)

@sreichel sreichel added the PHP 8 Related to PHP8 label Jan 13, 2021
@github-actions github-actions bot added Component: Adminhtml Relates to Mage_Adminhtml Component: Bundle Relates to Mage_Bundle Component: Catalog Relates to Mage_Catalog Component: Centinel Relates to Mage_Centinel Component: ConfigurableSwatches Relates to Mage_ConfigurableSwatches Component: Core Relates to Mage_Core Component: Downloadable Relates to Mage_Downloadable Component: Eav Relates to Mage_Eav Component: lib/Varien Relates to lib/Varien Component: lib/* Relates to lib/* Component: Rule Relates to Mage_Rule Component: Sales Relates to Mage_Sales Component: Tag Relates to Mage_Tag labels Jan 13, 2021
@sreichel sreichel closed this Mar 17, 2021
@addison74
Copy link
Contributor

Why this commit was closed? It should be merged in OpenMage.

@@ -131,11 +131,11 @@ public function removeButton($id)
* Update specified button property
*
* @param string $id
* @param string|null $key
* @param string $key
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it still accepts null as a param for this

$queryString = $queryString."</CardinalMPI>";
return "cmpi_msg=".urlencode($queryString);
}
function getRequestXml()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unrelated style change

@@ -162,11 +162,11 @@ protected function _updateButton($id, $key=null, $data)
* Public wrapper for protected _updateButton method
*
* @param string $id
* @param string|null $key
* @param string $key
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it still accepts null as a param here

@Flyingmana Flyingmana merged commit 7f8ac27 into OpenMage:1.9.4.x May 23, 2021
@github-actions
Copy link
Contributor

Unit Test Results

1 files  ±0  1 suites  ±0   0s ⏱️ ±0s
0 tests ±0  0 ✔️ ±0  0 💤 ±0  0 ❌ ±0 
6 runs  +4  4 ✔️ +2  2 💤 +2  0 ❌ ±0 

Results for commit 7f8ac27. ± Comparison against base commit 59983f9.

@sreichel sreichel deleted the php8/optional-parameter branch October 13, 2021 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Adminhtml Relates to Mage_Adminhtml Component: Bundle Relates to Mage_Bundle Component: Catalog Relates to Mage_Catalog Component: Centinel Relates to Mage_Centinel Component: ConfigurableSwatches Relates to Mage_ConfigurableSwatches Component: Core Relates to Mage_Core Component: Downloadable Relates to Mage_Downloadable Component: Eav Relates to Mage_Eav Component: lib/Varien Relates to lib/Varien Component: lib/* Relates to lib/* Component: Rule Relates to Mage_Rule Component: Sales Relates to Mage_Sales Component: Tag Relates to Mage_Tag PHP 8 Related to PHP8
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants