@@ -22,7 +22,7 @@ public function getValuesForResolver() : array
2222 $ return = [];
2323
2424 foreach ($ this as $ name => $ argumentValue ) {
25- $ return [$ name ] = $ argumentValue ->getValue () ->accept (new GetResolverValueVisitor ());
25+ $ return [$ name ] = $ argumentValue ->value ->accept (new GetResolverValueVisitor ());
2626 }
2727
2828 return $ return ;
@@ -38,24 +38,24 @@ public function applyVariables(VariableValueSet $variables) : void
3838 public function isSame (self $ compare ) : bool
3939 {
4040 foreach ($ compare as $ lhs ) {
41- if ($ this ->offsetExists ($ lhs ->getArgument () ->getName ())) {
42- if ($ lhs ->getValue () ->accept (new IsValueSameVisitor ($ this ->offsetGet ($ lhs ->getArgument () ->getName ())->getValue () ))) {
41+ if ($ this ->offsetExists ($ lhs ->argument ->getName ())) {
42+ if ($ lhs ->value ->accept (new IsValueSameVisitor ($ this ->offsetGet ($ lhs ->argument ->getName ())->value ))) {
4343 continue ;
4444 }
4545
4646 return false ;
4747 }
4848
49- if ($ lhs ->getValue () ->accept (new IsValueSameVisitor ($ lhs ->getArgument () ->getDefaultValue ()?->getValue() ))) {
49+ if ($ lhs ->value ->accept (new IsValueSameVisitor ($ lhs ->argument ->getDefaultValue ()?->value ))) {
5050 continue ;
5151 }
5252
5353 return false ;
5454 }
5555
5656 foreach ($ this as $ lhs ) {
57- if ($ compare ->offsetExists ($ lhs ->getArgument () ->getName ()) ||
58- $ lhs ->getValue () ->accept (new IsValueSameVisitor ($ lhs ->getArgument () ->getDefaultValue ()?->getValue() ))) {
57+ if ($ compare ->offsetExists ($ lhs ->argument ->getName ()) ||
58+ $ lhs ->value ->accept (new IsValueSameVisitor ($ lhs ->argument ->getDefaultValue ()?->value ))) {
5959 continue ;
6060 }
6161
@@ -70,6 +70,6 @@ protected function getKey(object $object) : string
7070 {
7171 \assert ($ object instanceof ArgumentValue);
7272
73- return $ object ->getArgument () ->getName ();
73+ return $ object ->argument ->getName ();
7474 }
7575}
0 commit comments