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(
38
38
Field $ field ,
39
39
$ context ,
40
40
ResolveInfo $ info ,
41
- array $ value = null ,
42
- array $ args = null
41
+ ? array $ value = null ,
42
+ ? array $ args = null
43
43
): ?array {
44
44
if (!$ this ->config ->isShareAllCatalogRulesEnabled ()) {
45
45
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(
38
38
Field $ field ,
39
39
$ context ,
40
40
ResolveInfo $ info ,
41
- array $ value = null ,
42
- array $ args = null
41
+ ? array $ value = null ,
42
+ ? array $ args = null
43
43
): ?array {
44
44
if (!isset ($ value ['model ' ])) {
45
45
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(
42
42
Field $ field ,
43
43
$ context ,
44
44
ResolveInfo $ info ,
45
- array $ value = null ,
46
- array $ args = null
45
+ ? array $ value = null ,
46
+ ? array $ args = null
47
47
): array {
48
48
if (!$ this ->config ->isShareAllCustomerGroupsEnabled ()) {
49
49
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(
39
39
Field $ field ,
40
40
$ context ,
41
41
ResolveInfo $ info ,
42
- array $ value = null ,
43
- array $ args = null
42
+ ? array $ value = null ,
43
+ ? array $ args = null
44
44
): ?array {
45
45
if (!($ value ['model ' ] ?? null ) instanceof CustomerInterface) {
46
46
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(
41
41
Field $ field ,
42
42
$ context ,
43
43
ResolveInfo $ info ,
44
- array $ value = null ,
45
- array $ args = null
44
+ ? array $ value = null ,
45
+ ? array $ args = null
46
46
): array {
47
47
if (!$ this ->config ->isShareCustomerGroupEnabled ()) {
48
48
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(
33
33
Field $ field ,
34
34
$ context ,
35
35
ResolveInfo $ info ,
36
- array $ value = null ,
37
- array $ args = null
36
+ ? array $ value = null ,
37
+ ? array $ args = null
38
38
): bool {
39
39
if (!isset ($ value ['model ' ]) || !$ value ['model ' ] instanceof ProductInterface) {
40
40
throw new LocalizedException (__ ('The product model is not available. ' ));
You can’t perform that action at this time.
0 commit comments