Skip to content

Commit b54e7ae

Browse files
committed
Declare optional argument after required.
This prevents PHP fatal error when plugin is added to the one of parent classes. Error example: 'Error: Cannot instantiate interface Magento\Framework\Data\OptionSourceInterface'
1 parent ad29452 commit b54e7ae

File tree

1 file changed

+2
-2
lines changed
  • app/code/Magento/MediaGalleryUi/Ui/Component/Listing/Filters

1 file changed

+2
-2
lines changed

app/code/Magento/MediaGalleryUi/Ui/Component/Listing/Filters/Asset.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ class Asset extends Select
3333
* @param UiComponentFactory $uiComponentFactory
3434
* @param FilterBuilder $filterBuilder
3535
* @param FilterModifier $filterModifier
36-
* @param OptionSourceInterface $optionsProvider
3736
* @param GetContentByAssetIdsInterface $getContentIdentities
37+
* @param OptionSourceInterface $optionsProvider
3838
* @param array $components
3939
* @param array $data
4040
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
@@ -44,8 +44,8 @@ public function __construct(
4444
UiComponentFactory $uiComponentFactory,
4545
FilterBuilder $filterBuilder,
4646
FilterModifier $filterModifier,
47-
OptionSourceInterface $optionsProvider = null,
4847
GetContentByAssetIdsInterface $getContentIdentities,
48+
OptionSourceInterface $optionsProvider = null,
4949
array $components = [],
5050
array $data = []
5151
) {

0 commit comments

Comments
 (0)