Open
Description
This issue is automatically created based on existing pull request: #37411: Unpack object arguments as named parameters
Description (*)
Just a code clean up that uses PHP 8.1 feature of unpacking array with named params.
So array_values
call is not needed anymore. Probably improve overrall performance by 0.01 :D as many objects will instantiate faster
Related Pull Requests
Fixed Issues (if relevant)
- Fixes magento/magento2#<issue_number>
Manual testing scenarios (*)
- ...
- ...
Questions or comments
Named argumaents are actualy a bit faster based on simple check for instantiatin 100 000 objects like this
https://pastebin.com/DGdBwwzN
Contribution checklist (*)
- Pull request has a meaningful description of its purpose
- All commits are accompanied by meaningful commit messages
- All new or changed code is covered with unit/integration tests (if applicable)
- README.md files for modified modules are updated and included in the pull request if any README.md predefined sections require an update
- All automated tests passed successfully (all builds are green)