-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from minenok/laravel-10
laravel 10 and strict types
- Loading branch information
Showing
26 changed files
with
162 additions
and
305 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,47 @@ | ||
{ | ||
"name": "lanin/laravel-api-exceptions", | ||
"description": "All in one solution for exception for JSON REST APIs on Laravel and Lumen.", | ||
"keywords": ["laravel", "framework", "api", "exceptions", "json"], | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Maxim Lanin", | ||
"email": "[email protected]", | ||
"homepage": "https://blog.lanin.me" | ||
} | ||
], | ||
"require": { | ||
"php": "^7.2|^8.0", | ||
"illuminate/support": "^7.0|^8.0|^9.0" | ||
}, | ||
"require-dev": { | ||
"orchestra/testbench": "^5.0", | ||
"phpunit/phpunit": "^8.0", | ||
"mockery/mockery": "^1.0" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Lanin\\Laravel\\ApiExceptions\\": "src/" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"Lanin\\Laravel\\ApiExceptions\\Tests\\": "tests/" | ||
} | ||
}, | ||
"minimum-stability": "dev", | ||
"prefer-stable": true, | ||
"extra": { | ||
"laravel": { | ||
"providers": [ | ||
"Lanin\\Laravel\\ApiExceptions\\ApiExceptionsServiceProvider" | ||
] | ||
} | ||
"name": "lanin/laravel-api-exceptions", | ||
"description": "All in one solution for exception for JSON REST APIs on Laravel and Lumen.", | ||
"keywords": [ | ||
"laravel", | ||
"framework", | ||
"api", | ||
"exceptions", | ||
"json" | ||
], | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Maxim Lanin", | ||
"email": "[email protected]", | ||
"homepage": "https://blog.lanin.me" | ||
} | ||
], | ||
"require": { | ||
"php": ">=8.1", | ||
"illuminate/support": "^10.0" | ||
}, | ||
"require-dev": { | ||
"orchestra/testbench": "^8.3", | ||
"phpunit/phpunit": ">=8.0", | ||
"mockery/mockery": "^1.0" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Lanin\\Laravel\\ApiExceptions\\": "src/" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"Lanin\\Laravel\\ApiExceptions\\Tests\\": "tests/" | ||
} | ||
}, | ||
"minimum-stability": "dev", | ||
"prefer-stable": true, | ||
"extra": { | ||
"laravel": { | ||
"providers": [ | ||
"Lanin\\Laravel\\ApiExceptions\\ApiExceptionsServiceProvider" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,16 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit backupGlobals="false" | ||
backupStaticAttributes="false" | ||
bootstrap="vendor/autoload.php" | ||
colors="true" | ||
convertErrorsToExceptions="true" | ||
convertNoticesToExceptions="true" | ||
convertWarningsToExceptions="true" | ||
processIsolation="false" | ||
stopOnFailure="false" | ||
> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" bootstrap="vendor/autoload.php" | ||
colors="true" processIsolation="false" stopOnFailure="false" | ||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd" cacheDirectory=".phpunit.cache" | ||
backupStaticProperties="false"> | ||
<coverage> | ||
<include> | ||
<directory suffix=".php">./src/</directory> | ||
</include> | ||
</coverage> | ||
<testsuites> | ||
<testsuite name="Package Test Suite"> | ||
<directory suffix=".php">./tests/</directory> | ||
</testsuite> | ||
</testsuites> | ||
<filter> | ||
<whitelist> | ||
<directory suffix=".php">./src/</directory> | ||
</whitelist> | ||
</filter> | ||
</phpunit> | ||
</phpunit> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Lanin\Laravel\ApiExceptions; | ||
|
||
use Illuminate\Support\ServiceProvider; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Lanin\Laravel\ApiExceptions\Contracts; | ||
|
||
interface DontReport | ||
{ | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Lanin\Laravel\ApiExceptions\Contracts; | ||
|
||
interface ShowsPrevious | ||
{ | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Lanin\Laravel\ApiExceptions\Contracts; | ||
|
||
interface ShowsTrace | ||
{ | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.