Skip to content
This repository was archived by the owner on Feb 27, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,18 @@ language: php

matrix:
include:
- php: "7.0"
env: LARAVEL_VERSION="5.5.*"
- php: "7.1"
env: LARAVEL_VERSION="5.5.*"
- php: "7.2"
env: LARAVEL_VERSION="5.5.*"
- php: "7.2"
env: LARAVEL_VERSION="5.6.*"
- php: "7.2"
env: LARAVEL_VERSION="5.7.*" RUN_CS_FIXER=1
env: LARAVEL_VERSION="5.7.*"
- php: "7.2"
env: LARAVEL_VERSION="5.8.*"
- php: "7.3"
env: LARAVEL_VERSION="5.8.*" RUN_CS_FIXER=1

sudo: false

Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All Notable changes to `json-api-server` will be documented in this file.

Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) principles.

## 0.4.0

### Added

- Laravel 5.8 support.

## 0.3.7

### Fixed
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@
}
],
"require": {
"php": "^7.0",
"php": ">=7.1.3",
"dimsav/laravel-translatable": "^8.0|^9.0",
"laravel/framework": "5.5.*|5.6.*|5.7.*"
"laravel/framework": "5.5.*|5.6.*|5.7.*|5.8.*"
},
"require-dev": {
"filp/whoops": "~2.0",
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Controllers/Api/BaseApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public function delete($id)
/**
* @param $policyMethod
* @param $item
* @param null|mixed $requestedObject
* @param mixed|null $requestedObject
*
* @throws ForbiddenException
* @throws AuthorizationException
Expand Down
4 changes: 2 additions & 2 deletions src/Repositories/BaseApiRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function paginate($parameters = [])
*
* @throws NotFoundException
*
* @return \Illuminate\Database\Eloquent\Collection|Model|null|static|static[]
* @return \Illuminate\Database\Eloquent\Collection|Model|static|static[]|null
*/
public function findById($value, $parameters = [])
{
Expand Down Expand Up @@ -93,7 +93,7 @@ public function create(array $data)
*
* @throws NotFoundException
*
* @return \Illuminate\Database\Eloquent\Collection|Model|null|static|static[]
* @return \Illuminate\Database\Eloquent\Collection|Model|static|static[]|null
*/
public function update(array $data, $objectKey)
{
Expand Down
2 changes: 1 addition & 1 deletion tests/CommandTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

class CommandTestCase extends TestCase
{
public function setUp()
protected function setUp(): void
{
parent::setUp();
config(['laravel_api.path.templates' => 'resources/templates/']);
Expand Down
3 changes: 2 additions & 1 deletion tests/Unit/ControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ class ControllerTest extends TestCase
/** @var TestModel */
protected $testModel;

public function setUp()
protected function setUp(): void
{
parent::setUp();

$this->setUpDatabase($this->app);
$this->testModel = new TestModel(['title' => 'test', 'body' => 'test']);
$this->testModel->save();
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/EmptyPaginatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class EmptyPaginatorTest extends TestCase
/** @var EmptyPaginator */
private $emptyPaginator;

protected function setUp()
protected function setUp(): void
{
$this->emptyPaginator = new EmptyPaginator();
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/HandleResponsesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class HandleResponsesTest extends TestCase
/** @var HandleResponses $mock */
private $mock;

protected function setUp()
protected function setUp(): void
{
$this->mock = $this->getMockForTrait(HandleResponses::class);
parent::setUp(); // TODO: Change the autogenerated stub
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/InspectContentTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class InspectContentTypeTest extends TestCase
/** @var InspectContentType */
protected $middleware;

protected function setUp()
protected function setUp(): void
{
parent::setUp(); // TODO: Change the autogenerated stub
$this->request = Request::create('http://example.com/admin', 'GET');
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/RepositoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class RepositoryTest extends TestCase
* Bootstrap the database
* Setup a base repository which most test cases use.
*/
protected function setUp()
protected function setUp(): void
{
parent::setUp();
$this->setUpDatabase($this->app);
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/ResponseServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class ResponseServiceTest extends TestCase
*/
private $responseService;

public function setUp()
protected function setUp(): void
{
parent::setUp();
$this->responseService = new ResponseService();
Expand Down