Skip to content

Commit 1b9574a

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

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/Capability/PromptChain.php

Lines changed: 3 additions & 3 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
/**
23-
* @param IdentifierInterface[] $items
23+
* @param MetadataInterface[] $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: 3 additions & 3 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
/**
23-
* @param IdentifierInterface[] $items
23+
* @param MetadataInterface[] $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: 3 additions & 3 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
/**
23-
* @param IdentifierInterface[] $items
23+
* @param MetadataInterface[] $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)