Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
maximebeaudoin committed Feb 2, 2024
1 parent 8c198d3 commit 347bb0d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/run-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ jobs:
strategy:
fail-fast: true
matrix:
os: [ubuntu-20.04]
php: [7.4, 8.0, 8.1, 8.2, 8.3]
os: [ubuntu-22.04]
php: [8.0, 8.1, 8.2, 8.3]

name: PHP ${{ matrix.php }} on ${{ matrix.os }}

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ $ composer require ellipsesynergie/api-response

The following versions of PHP are supported by this version:

>= PHP 7.4
>= PHP 8.0

### Install in Laravel
Add this following service provider to your `config/app.php` file.
Expand Down
14 changes: 7 additions & 7 deletions src/AbstractResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,22 +41,22 @@ abstract class AbstractResponse implements Response
/**
* Fractal manager
*
* @var \League\Fractal\Manager
* @var Manager
*/
protected $manager;

/**
* @param \League\Fractal\Manager $manager
* @param Manager $manager
*/
public function __construct(Manager $manager)
{
$this->manager = $manager;
}

/**
* @return \League\Fractal\Manager
* @return Manager
*/
public function getManager()
public function getManager() : Manager
{
return $this->manager;
}
Expand All @@ -66,7 +66,7 @@ public function getManager()
*
* @return int
*/
public function getStatusCode()
public function getStatusCode(): int
{
return $this->statusCode;
}
Expand All @@ -75,9 +75,9 @@ public function getStatusCode()
* Setter for status code
*
* @param int $statusCode
* @return \EllipseSynergie\ApiResponse\AbstractResponse
* @return AbstractResponse
*/
public function setStatusCode($statusCode)
public function setStatusCode($statusCode): AbstractResponse
{
$this->statusCode = $statusCode;
return $this;
Expand Down

0 comments on commit 347bb0d

Please sign in to comment.