Skip to content

Conversation

sreichel
Copy link
Contributor

@sreichel sreichel commented Aug 5, 2022

Description (*)

Correct usage for adding items to ArrayObject ...

Manual testing scenarios (*)

https://phpstan.org/r/4eaed64e-ec9f-44ae-bc8e-83a020ff3163

Questions or comments

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)
  • Add yourself to contributors list

@github-actions github-actions bot added Component: Admin Relates to Mage_Admin Component: Api PageRelates to Mage_Api labels Aug 5, 2022
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

1 similar comment
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

1 similar comment
@github-actions

This comment has been minimized.

@fballiano
Copy link

Since the arrayObject is casted to array before returning... why don't we just convert everything to an array?

@sreichel
Copy link
Contributor Author

sreichel commented Aug 10, 2022

This could break observers that rely on $errors being ArrayObject ...

Mage::dispatchEvent('admin_user_validate', array(
'user' => $this,
'errors' => $errors,
));

@elidrissidev elidrissidev merged commit ff13954 into 1.9.4.x Aug 12, 2022
@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 
7 runs  ±0  5 ✔️ ±0  2 💤 ±0  0 ❌ ±0 

Results for commit ff13954. ± Comparison against base commit 8d2a11b.

@sreichel sreichel deleted the array-object branch August 13, 2022 05:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Admin Relates to Mage_Admin Component: Api PageRelates to Mage_Api environment phpstan
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants