Skip to content

Commit

Permalink
feat: add and use thecodingmachine/safe
Browse files Browse the repository at this point in the history
  • Loading branch information
chuckadams committed Oct 19, 2024
1 parent 3dfea49 commit 428b882
Show file tree
Hide file tree
Showing 4 changed files with 204 additions and 3 deletions.
2 changes: 2 additions & 0 deletions app/Http/Controllers/CatchAllController.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
use Illuminate\Support\Facades\Http;
use Illuminate\Support\Str;

use function Safe\json_encode;

class CatchAllController extends Controller
{
public function __invoke(Request $request): Response
Expand Down
6 changes: 4 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"laravel/framework": "^11.9",
"laravel/tinker": "^2.9",
"robmorgan/phinx": "^0.16.5",
"spatie/laravel-data": "^4.10"
"spatie/laravel-data": "^4.10",
"thecodingmachine/safe": "^2.5"
},
"require-dev": {
"aspirepress/aspirecloud-migrations": "dev-main",
Expand All @@ -29,7 +30,8 @@
"nunomaduro/collision": "^8.1",
"pestphp/pest": "^3.4",
"pestphp/pest-plugin-laravel": "^3.0",
"phpstan/phpstan": "^1.12"
"phpstan/phpstan": "^1.12",
"thecodingmachine/phpstan-safe-rule": "^1.2"
},
"autoload": {
"psr-4": {
Expand Down
198 changes: 197 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
includes:
- vendor/larastan/larastan/extension.neon
- vendor/thecodingmachine/phpstan-safe-rule/phpstan-safe-rule.neon
- baseline.neon

parameters:
Expand Down

0 comments on commit 428b882

Please sign in to comment.