Skip to content

Commit

Permalink
Updated nunomaduro/larastan to larastan/larastan and updated everythi…
Browse files Browse the repository at this point in the history
…ng according to skeleton
  • Loading branch information
rickgoemans committed Jan 18, 2024
1 parent 097a327 commit 3b1af0d
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 11 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
"spatie/laravel-package-tools": "^1.14.0"
},
"require-dev": {
"larastan/larastan": "^2.0",
"laravel/pint": "^1.0",
"nunomaduro/collision": "^7.8",
"nunomaduro/larastan": "^2.0.1",
"orchestra/testbench": "^8.8",
"pestphp/pest": "^2.0",
"pestphp/pest": "^2.20",
"pestphp/pest-plugin-arch": "^2.0",
"pestphp/pest-plugin-laravel": "^2.0",
"phpstan/extension-installer": "^1.1",
Expand All @@ -46,7 +46,7 @@
},
"scripts": {
"post-autoload-dump": "@php ./vendor/bin/testbench package:discover --ansi",
"analyse": "vendor/bin/phpstan analyse",
"analyse": "vendor/bin/phpstan analyse --memory-limit=2G",
"test": "vendor/bin/pest",
"test-coverage": "vendor/bin/pest --coverage",
"format": "vendor/bin/pint"
Expand Down
5 changes: 2 additions & 3 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@ includes:
- phpstan-baseline.neon

parameters:
level: 4
level: 5
paths:
- src
- config
- database
tmpDir: build/phpstan
checkOctaneCompatibility: true
checkModelProperties: true
checkMissingIterableValueType: false

checkMissingIterableValueType: false
4 changes: 2 additions & 2 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.2/phpunit.xsd"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.3/phpunit.xsd"
backupGlobals="false"
bootstrap="vendor/autoload.php"
colors="true"
Expand Down Expand Up @@ -35,4 +35,4 @@
<directory suffix=".php">./src</directory>
</include>
</source>
</phpunit>
</phpunit>
1 change: 0 additions & 1 deletion src/Casts/DynamicSettingValueCaster.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ public function get($model, string $key, $value, array $attributes): mixed
UserSettingType::Boolean => (bool) $value,
UserSettingType::Date => Carbon::parse($value),
UserSettingType::Text => $value,
default => throw new Exception("Invalid setting type {$setting->type}"),
};
}

Expand Down
4 changes: 2 additions & 2 deletions tests/ArchTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php

it('will not use debugging functions')
arch('it will not use debugging functions')
->expect(['dd', 'dump', 'ray'])
->each->not->toBeUsed();
->each->not->toBeUsed();
25 changes: 25 additions & 0 deletions workbench/app/Providers/WorkbenchServiceProvider.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php

namespace Workbench\App\Providers;

use Illuminate\Support\Facades\Route;
use Illuminate\Support\ServiceProvider;

class WorkbenchServiceProvider extends ServiceProvider
{
/**
* Register services.
*/
public function register(): void
{
//
}

/**
* Bootstrap services.
*/
public function boot(): void
{
Route::view('/', 'welcome');
}
}

0 comments on commit 3b1af0d

Please sign in to comment.