diff --git a/src/Schema/Serialization/DebugSchemaDecorator.php b/src/Schema/Serialization/DebugSchemaDecorator.php index e9b8ea1..fa47f85 100644 --- a/src/Schema/Serialization/DebugSchemaDecorator.php +++ b/src/Schema/Serialization/DebugSchemaDecorator.php @@ -12,11 +12,8 @@ public function decorate(SchemaBuilder $builder): SchemaBuilder { foreach ($builder->getControllers() as $controller) { foreach ($controller->getMethods() as $method) { - $negotiation1 = $method->addNegotiation(); - $negotiation1->setSuffix('.debugdata'); - - $negotiation2 = $method->addNegotiation(); - $negotiation2->setSuffix('.debug'); + $method->addNegotiation('.debugdata'); + $method->addNegotiation('.debug'); } }