8000 Merge branch 'release/3.0.1' · ossycodes/laravel-json-api@11a8efd · GitHub
[go: up one dir, main page]

Skip to content

Commit 11a8efd

Browse files
committed
Merge branch 'release/3.0.1'
2 parents bf58013 + a5bab93 commit 11a8efd

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-9
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
All notable changes to this project will be documented in this file. This project adheres to
33
[Semantic Versioning](http://semver.org/) and [this changelog format](http://keepachangelog.com/).
44

5+
## [3.0.1] - 2020-10-14
6+
7+
### Fixed
8+
- [#560](https://github.com/cloudcreativity/laravel-json-api/pull/560)
9+
Fixed type-hinting in abstract adapter stub.
10+
511
## [3.0.0] - 2020-09-09
612

713
### Added

docs/features/media-types.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -461,13 +461,13 @@ To use a re-usable content negotiator on specific resource types, use the `conte
461461
when registering the resource. For example, if we wanted to use the `json` content negotiator only
462462
for the `posts` and `comments` resources, but not the `tags` resource:
463463

464-
```php
465-
JsonApi::register('default')->routes(function ($api, $router) {
466-
$api->resource('posts')->contentNegotiator('json');
467-
$api->resource('comments')->contentNegotiator('json');
468-
$api->resource('tags'); // uses the default content negotiator
469-
});
470-
```
464+
```php
465+
JsonApi::register('default')->routes(function ($api, $router) {
466+
$api->resource('posts')->contentNegotiator('json');
467+
$api->resource('comments')->contentNegotiator('json');
468+
$api->resource('tags'); // uses the default content negotiator
469+
});
470+
```
471471

472472
If you have generated a resource-specific content negotiator, it will be automatically detected so there
473473
is no need to configure it.

stubs/abstract/adapter.stub

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class DummyClass extends AbstractResourceAdapter
5353
/**
5454
* @inheritDoc
5555
*/
56-
public function exists($resourceId)
56+
public function exists(string $resourceId): bool
5757
{
5858
// TODO: Implement exists() method.
5959
}
@@ -69,7 +69,7 @@ class DummyClass extends AbstractResourceAdapter
6969
/**
7070
* @inheritDoc
7171
*/
72-
public function findMany(array $resourceIds)
72+
public function findMany(iterable $resourceIds): iterable
7373
{
7474
// TODO: Implement findMany() method.
7575
}

0 commit comments

Comments
 (0)
0