1111use Doctrine \DBAL \DriverManager ;
1212use function file_get_contents ;
1313use function file_put_contents ;
14- use GraphQL \Error \Debug ;
1514use GraphQL \GraphQL ;
15+ use GraphQL \Error \DebugFlag ;
1616use GraphQL \Type \Definition \InputType ;
1717use GraphQL \Type \Definition \ObjectType ;
1818use GraphQL \Type \Definition \Type ;
@@ -543,7 +543,7 @@ public function testQuery()
543543}
544544EOF ;
545545
546- $ response = GraphQL::executeQuery ($ schema , $ introspectionQuery )->toArray (Debug ::RETHROW_UNSAFE_EXCEPTIONS | Debug ::RETHROW_INTERNAL_EXCEPTIONS );
546+ $ response = GraphQL::executeQuery ($ schema , $ introspectionQuery )->toArray (DebugFlag ::RETHROW_UNSAFE_EXCEPTIONS | DebugFlag ::RETHROW_INTERNAL_EXCEPTIONS );
547547 $ this ->assertTrue (isset ($ response ['data ' ]['__schema ' ]['queryType ' ]['name ' ]));
548548
549549 $ introspectionQuery2 = <<<EOF
@@ -562,7 +562,7 @@ public function testQuery()
562562}
563563EOF ;
564564
565- $ response = GraphQL::executeQuery ($ schema , $ introspectionQuery2 )->toArray (Debug ::RETHROW_UNSAFE_EXCEPTIONS | Debug ::RETHROW_INTERNAL_EXCEPTIONS );
565+ $ response = GraphQL::executeQuery ($ schema , $ introspectionQuery2 )->toArray (DebugFlag ::RETHROW_UNSAFE_EXCEPTIONS | DebugFlag ::RETHROW_INTERNAL_EXCEPTIONS );
566566 $ this ->assertSame ('User ' , $ response ['data ' ]['__type ' ]['name ' ]);
567567 $ this ->assertSame ('OBJECT ' , $ response ['data ' ]['__type ' ]['kind ' ]);
568568 $ this ->assertSame ('id ' , $ response ['data ' ]['__type ' ]['fields ' ][0 ]['name ' ]);
@@ -588,7 +588,7 @@ public function testQuery()
588588 }
589589}
590590EOF ;
591- $ response = GraphQL::executeQuery ($ schema , $ introspectionQuery3 )->toArray (Debug ::RETHROW_UNSAFE_EXCEPTIONS | Debug ::RETHROW_INTERNAL_EXCEPTIONS );
591+ $ response = GraphQL::executeQuery ($ schema , $ introspectionQuery3 )->toArray (DebugFlag ::RETHROW_UNSAFE_EXCEPTIONS | DebugFlag ::RETHROW_INTERNAL_EXCEPTIONS );
592592 $ this ->assertSame ('John Smith ' , $ response ['data ' ]['users ' ][0 ]['name ' ]);
593593 $ this ->assertSame ('Admins ' , $ response ['data ' ]['users ' ][0 ]['roles ' ][0 ]['name ' ]);
594594
@@ -600,7 +600,7 @@ public function testQuery()
600600 }
601601}
602602EOF ;
603- $ response = GraphQL::executeQuery ($ schema , $ query4 )->toArray (Debug ::RETHROW_UNSAFE_EXCEPTIONS | Debug ::RETHROW_INTERNAL_EXCEPTIONS );
603+ $ response = GraphQL::executeQuery ($ schema , $ query4 )->toArray (DebugFlag ::RETHROW_UNSAFE_EXCEPTIONS | DebugFlag ::RETHROW_INTERNAL_EXCEPTIONS );
604604 $ this ->assertSame ('John Smith ' , $ response ['data ' ]['user ' ]['name ' ]);
605605 }
606606
@@ -638,7 +638,7 @@ public function testResultIteratorType()
638638 }
639639}
640640EOF ;
641- $ response = GraphQL::executeQuery ($ schema , $ query )->toArray (Debug ::RETHROW_UNSAFE_EXCEPTIONS | Debug ::RETHROW_INTERNAL_EXCEPTIONS );
641+ $ response = GraphQL::executeQuery ($ schema , $ query )->toArray (DebugFlag ::RETHROW_UNSAFE_EXCEPTIONS | DebugFlag ::RETHROW_INTERNAL_EXCEPTIONS );
642642
643643 $ this ->assertSame ([
644644 'data ' =>
0 commit comments