Skip to content

Commit 0fdf4e7

Browse files
committed
Sli: Generate sync providers that return iterable<array-key,TEntity>
- Further to `Sync` change in v0.99.63 (commit b232a8c), generate list operations that return `iterable` types with array-compatible keys
1 parent f44ff66 commit 0fdf4e7

File tree

12 files changed

+20
-19
lines changed

12 files changed

+20
-19
lines changed

src/Toolkit/Sli/Command/Generate/GenerateSyncProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ protected function run(string ...$args)
175175
if (SyncUtil::isListOperation($op)) {
176176
$paramDoc = 'iterable<' . $service . '> $' . $camelPlural;
177177
$paramCode = 'iterable $' . $camelPlural;
178-
$returnDoc = 'iterable<' . $service . '>';
178+
$returnDoc = 'iterable<array-key,' . $service . '>';
179179
$returnCode = 'iterable';
180180
} else {
181181
$paramDoc = $service . ' $' . $camelClass;

tests/fixtures/Toolkit/Sync/Entity/Provider/AlbumProvider.php

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/fixtures/Toolkit/Sync/Entity/Provider/CollidesProvider.php

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/fixtures/Toolkit/Sync/Entity/Provider/CommentProvider.php

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/fixtures/Toolkit/Sync/Entity/Provider/PhotoProvider.php

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/fixtures/Toolkit/Sync/Entity/Provider/PostProvider.php

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/fixtures/Toolkit/Sync/Entity/Provider/TaskProvider.php

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/fixtures/Toolkit/Sync/Entity/Provider/UnimplementedProvider.php

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/fixtures/Toolkit/Sync/Entity/Provider/UserProvider.php

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/fixtures/Toolkit/Sync/External/Entity/Provider/CollidesProvider.php

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)