Skip to content

Commit

Permalink
Revert "document generic arrays"
Browse files Browse the repository at this point in the history
This reverts commit 6417521.
  • Loading branch information
DjordyKoert committed Jan 7, 2025
1 parent 6417521 commit 1efbf26
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 67 deletions.
4 changes: 0 additions & 4 deletions config/services.xml
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,6 @@
<tag name="nelmio_api_doc.schema_describer" priority="100" />
</service>

<service id="nelmio_api_doc.schema_describer.array" class="Nelmio\ApiDocBundle\TypeDescriber\ArrayDescriber" public="false">
<tag name="nelmio_api_doc.schema_describer" />
</service>

<service id="nelmio_api_doc.schema_describer.bool" class="Nelmio\ApiDocBundle\TypeDescriber\BoolDescriber" public="false">
<tag name="nelmio_api_doc.schema_describer" />
</service>
Expand Down
61 changes: 0 additions & 61 deletions src/TypeDescriber/ArrayDescriber.php

This file was deleted.

1 change: 0 additions & 1 deletion src/TypeDescriber/DictionaryDescriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ public function describe(Type $type, Schema $schema, array $context = []): void
public function supports(Type $type, array $context = []): bool
{
return $type instanceof CollectionType
&& false === $type->getCollectionKeyType() instanceof Type\UnionType
&& $type->getCollectionKeyType()->isIdentifiedBy(TypeIdentifier::STRING);
}
}
1 change: 0 additions & 1 deletion src/TypeDescriber/ListDescriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ public function describe(Type $type, Schema $schema, array $context = []): void
public function supports(Type $type, array $context = []): bool
{
return $type instanceof CollectionType
&& false === $type->getCollectionKeyType() instanceof Type\UnionType
&& $type->getCollectionKeyType()->isIdentifiedBy(TypeIdentifier::INT);
}
}

0 comments on commit 1efbf26

Please sign in to comment.