File tree Expand file tree Collapse file tree 6 files changed +12
-12
lines changed
CatalogRuleGraphQl/Model/Resolver
CustomerGraphQl/Model/Resolver
GiftMessageGraphQl/Model/Resolver/Product Expand file tree Collapse file tree 6 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -38,8 +38,8 @@ public function resolve(
3838 Field $ field ,
3939 $ context ,
4040 ResolveInfo $ info ,
41- array $ value = null ,
42- array $ args = null
41+ ? array $ value = null ,
42+ ? array $ args = null
4343 ): ?array {
4444 if (!$ this ->config ->isShareAllCatalogRulesEnabled ()) {
4545 throw new GraphQlInputException (__ ('Sharing catalog rules information is disabled or not configured. ' ));
Original file line number Diff line number Diff line change @@ -38,8 +38,8 @@ public function resolve(
3838 Field $ field ,
3939 $ context ,
4040 ResolveInfo $ info ,
41- array $ value = null ,
42- array $ args = null
41+ ? array $ value = null ,
42+ ? array $ args = null
4343 ): ?array {
4444 if (!isset ($ value ['model ' ])) {
4545 throw new LocalizedException (__ ('"model" value should be specified ' ));
Original file line number Diff line number Diff line change @@ -42,8 +42,8 @@ public function resolve(
4242 Field $ field ,
4343 $ context ,
4444 ResolveInfo $ info ,
45- array $ value = null ,
46- array $ args = null
45+ ? array $ value = null ,
46+ ? array $ args = null
4747 ): array {
4848 if (!$ this ->config ->isShareAllCustomerGroupsEnabled ()) {
4949 throw new GraphQlInputException (__ ('Sharing customer group information is disabled or not configured. ' ));
Original file line number Diff line number Diff line change @@ -39,8 +39,8 @@ public function resolve(
3939 Field $ field ,
4040 $ context ,
4141 ResolveInfo $ info ,
42- array $ value = null ,
43- array $ args = null
42+ ? array $ value = null ,
43+ ? array $ args = null
4444 ): ?array {
4545 if (!($ value ['model ' ] ?? null ) instanceof CustomerInterface) {
4646 throw new LocalizedException (__ ('"model" value should be specified ' ));
Original file line number Diff line number Diff line change @@ -41,8 +41,8 @@ public function resolve(
4141 Field $ field ,
4242 $ context ,
4343 ResolveInfo $ info ,
44- array $ value = null ,
45- array $ args = null
44+ ? array $ value = null ,
45+ ? array $ args = null
4646 ): array {
4747 if (!$ this ->config ->isShareCustomerGroupEnabled ()) {
4848 throw new GraphQlInputException (__ ('Sharing customer group information is disabled or not configured. ' ));
Original file line number Diff line number Diff line change @@ -33,8 +33,8 @@ public function resolve(
3333 Field $ field ,
3434 $ context ,
3535 ResolveInfo $ info ,
36- array $ value = null ,
37- array $ args = null
36+ ? array $ value = null ,
37+ ? array $ args = null
3838 ): bool {
3939 if (!isset ($ value ['model ' ]) || !$ value ['model ' ] instanceof ProductInterface) {
4040 throw new LocalizedException (__ ('The product model is not available. ' ));
You can’t perform that action at this time.
0 commit comments