Skip to content

Commit e2edcdd

Browse files
committed
refactor: Fixed code type declaration errors
1 parent 4b42682 commit e2edcdd

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/Capability/PromptChain.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@
1616
*/
1717
class PromptChain implements PromptGetterInterface, CollectionInterface
1818
{
19-
/** @var IdentifierInterface[] */
19+
/** @var MetadataInterface[] */
2020
private readonly array $items;
2121

2222
/**
2323
* @param IdentifierInterface[] $items
2424
*/
2525
public function __construct(array $items)
2626
{
27-
/** @var IdentifierInterface[] $values */
27+
/** @var MetadataInterface[] $values */
2828
$values = array_values(array_filter($items, fn ($item) => $item instanceof MetadataInterface));
2929
$keys = array_map(fn ($item) => $item->getName(), $values);
3030
$this->items = array_combine($keys, $values);

src/Capability/ResourceChain.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@
1616
*/
1717
class ResourceChain implements CollectionInterface, ResourceReaderInterface
1818
{
19-
/** @var IdentifierInterface[] */
19+
/** @var MetadataInterface[] */
2020
private readonly array $items;
2121

2222
/**
2323
* @param IdentifierInterface[] $items
2424
*/
2525
public function __construct(array $items)
2626
{
27-
/** @var IdentifierInterface[] $values */
27+
/** @var MetadataInterface[] $values */
2828
$values = array_values(array_filter($items, fn ($item) => $item instanceof MetadataInterface));
2929
$keys = array_map(fn ($item) => $item->getUri(), $values);
3030
$this->items = array_combine($keys, $values);

src/Capability/ToolChain.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@
1616
*/
1717
class ToolChain implements ToolExecutorInterface, CollectionInterface
1818
{
19-
/** @var IdentifierInterface[] */
19+
/** @var MetadataInterface[] */
2020
private readonly array $items;
2121

2222
/**
2323
* @param IdentifierInterface[] $items
2424
*/
2525
public function __construct(array $items)
2626
{
27-
/** @var IdentifierInterface[] $values */
27+
/** @var MetadataInterface[] $values */
2828
$values = array_values(array_filter($items, fn ($item) => $item instanceof MetadataInterface));
2929
$keys = array_map(fn ($item) => $item->getName(), $values);
3030
$this->items = array_combine($keys, $values);

0 commit comments

Comments
 (0)