Skip to content

Commit

Permalink
Remove TODO-s
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor committed Oct 25, 2023
1 parent 85330e1 commit f1bfb8f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion database/factories/MediumFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class MediumFactory extends Factory
/**
* The name of the factory's corresponding model.
*
* @var string
* @var class-string<\Cone\Root\Models\Medium>
*/
protected $model = Medium::class;

Expand Down
2 changes: 1 addition & 1 deletion database/factories/MetaFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class MetaFactory extends Factory
/**
* The name of the factory's corresponding model.
*
* @var string
* @var class-string<\Cone\Root\Models\Meta>
*/
protected $model = Meta::class;

Expand Down
2 changes: 1 addition & 1 deletion database/factories/NotificationFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class NotificationFactory extends Factory
/**
* The name of the factory's corresponding model.
*
* @var string
* @var class-string<\Cone\Root\Models\Notification>
*/
protected $model = Notification::class;

Expand Down
10 changes: 4 additions & 6 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
includes:
- vendor/nunomaduro/larastan/extension.neon
# - phpstan-baseline.neon
- phpstan-baseline.neon
parameters:
databaseMigrationsPath:
- database/migrations/
Expand All @@ -11,8 +11,7 @@ parameters:
paths:
- src/
- config/
# TODO
# - database/
- database/
- routes/
level: 5
checkAlwaysTrueCheckTypeFunctionCall: true
Expand All @@ -28,8 +27,7 @@ parameters:
checkInternalClassCaseSensitivity: true
ignoreErrors:
- '#^Unsafe usage of new static#'
# --- TODO-s ---
# X vs. X contract
- '#but returns Illuminate\\Contracts\\#'
# Illuminate\View\View vs. Illuminate\Contracts\View\View
- '#^Method Cone\\\S+::render\(\) should return Illuminate\\View\\View but returns Illuminate\\Contracts\\View\\View\.$#'
# SoftDeletes
- '#(\$forceDeleting|::withTrashed|::onlyTrashed|::trashed|::restore)#'

0 comments on commit f1bfb8f

Please sign in to comment.