Skip to content

Conversation

@daryledesilva
Copy link
Contributor

@daryledesilva daryledesilva commented Oct 10, 2020

fixes these errors on a freshly generated abstract adapter:

Declaration of App\JsonApi\Adapters\SearchResultAdapter::exists($resourceId) must be compatible with CloudCreativity\LaravelJsonApi\Contracts\Adapter\ResourceAdapterInterface::exists(string $resourceId): bool
Declaration of App\JsonApi\Adapters\SearchResultAdapter::findMany(array $resourceIds) must be compatible with CloudCreativity\LaravelJsonApi\Contracts\Adapter\ResourceAdapterInterface::findMany(iterable $resourceIds): iterable

fixes this error on a freshly generated abstract adapter:
```
Declaration of App\JsonApi\Adapters\SearchResultAdapter::exists($resourceId) must be compatible with CloudCreativity\LaravelJsonApi\Contracts\Adapter\ResourceAdapterInterface::exists(string $resourceId): bool
```
fixes
```
Declaration of App\JsonApi\Adapters\SearchResultAdapter::findMany(array $resourceIds) must be compatible with CloudCreativity\LaravelJsonApi\Contracts\Adapter\ResourceAdapterInterface::findMany(iterable $resourceIds): iterable
```
from freshly generated abstract adapter
@daryledesilva daryledesilva changed the title add :bool to exists() in abstract adapter stub Update abstract adapter stub Oct 10, 2020
Copy link
Member

@lindyhopchris lindyhopchris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for submitting this. I hadn't spotted the stub was out of date! Just one change required to merge it.

@daryledesilva
Copy link
Contributor Author

daryledesilva commented Oct 14, 2020

Thanks for submitting this. I hadn't spotted the stub was out of date! Just one change required to merge it.

@lindyhopchris Ok thanks! Done! If you merge my PR just squash it so it's cleaner 😁 cheers!

@lindyhopchris lindyhopchris merged commit 2ed1050 into cloudcreativity:develop Oct 14, 2020
@daryledesilva daryledesilva deleted the patch-1 branch October 14, 2020 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants