Skip to content

Commit a4c02d5

Browse files
committed
fixes
1 parent beb589e commit a4c02d5

File tree

6 files changed

+9
-23
lines changed

6 files changed

+9
-23
lines changed

src/Hydra/Collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class Collection
2626
public string $context = 'VIRTUAL';
2727

2828
#[StreamedName('@id')]
29-
public CollectionId $id = CollectionId::VALUE;
29+
public string $id = 'VIRTUAL';
3030

3131
#[StreamedName('@type')]
3232
public string $type = 'Collection';

src/Hydra/CollectionId.php

Lines changed: 0 additions & 19 deletions
This file was deleted.

src/Hydra/Serializer/CollectionFiltersNormalizer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
namespace ApiPlatform\Hydra\Serializer;
1515

16-
use ApiPlatform\Hydra\IriTemplate\IriTemplateMapping;
16+
use ApiPlatform\Hydra\IriTemplateMapping;
1717
use ApiPlatform\Hydra\State\Util\SearchHelperTrait;
1818
use ApiPlatform\JsonLd\Serializer\HydraPrefixTrait;
1919
use ApiPlatform\Metadata\FilterInterface;
@@ -132,7 +132,7 @@ public function setNormalizer(NormalizerInterface $normalizer): void
132132
}
133133

134134
/**
135-
* @param IriTemplateMapping[] $mapping
135+
* @param list<IriTemplateMapping> $mapping
136136
*
137137
* @return array<array<string, mixed>>
138138
*/

src/Hydra/State/JsonStreamerProcessor.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
use ApiPlatform\Metadata\ResourceClassResolverInterface;
2727
use ApiPlatform\Metadata\UrlGeneratorInterface;
2828
use ApiPlatform\State\Pagination\PaginatorInterface;
29+
use ApiPlatform\State\Pagination\PartialPaginatorInterface;
2930
use ApiPlatform\State\ProcessorInterface;
3031
use ApiPlatform\State\Util\HttpResponseHeadersTrait;
3132
use ApiPlatform\State\Util\HttpResponseStatusTrait;

src/Symfony/Bundle/DependencyInjection/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public function getConfigTreeBuilder(): TreeBuilder
109109
->end()
110110
->booleanNode('handle_symfony_errors')->defaultFalse()->info('Allows to handle symfony exceptions.')->end()
111111
->booleanNode('enable_swagger')->defaultTrue()->info('Enable the Swagger documentation and export.')->end()
112-
->booleanNode('enable_json_streamer')->defaultValue(class_exists(JsonStreamWriter::class))->info('Enable the json stream writerw.')->end()
112+
->booleanNode('enable_json_streamer')->defaultValue(class_exists(JsonStreamWriter::class))->info('Enable json streamer.')->end()
113113
->booleanNode('enable_swagger_ui')->defaultValue(class_exists(TwigBundle::class))->info('Enable Swagger UI')->end()
114114
->booleanNode('enable_re_doc')->defaultValue(class_exists(TwigBundle::class))->info('Enable ReDoc')->end()
115115
->booleanNode('enable_entrypoint')->defaultTrue()->info('Enable the entrypoint')->end()

tests/Functional/JsonStreamerTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,10 @@ public function testJsonStreamerWrite(): void
158158
$this->markTestSkipped();
159159
}
160160

161+
if (\PHP_VERSION_ID < 80400) {
162+
$this->markTestSkipped('PHP version is lower than 8.4');
163+
}
164+
161165
$buffer = '';
162166
ob_start(function (string $chunk) use (&$buffer): void {
163167
$buffer .= $chunk;

0 commit comments

Comments
 (0)