Skip to content

Commit

Permalink
chore: migrated from abandoned larastan package (#724)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyrch authored Aug 13, 2024
1 parent 8890171 commit 6b1b612
Show file tree
Hide file tree
Showing 43 changed files with 150 additions and 110 deletions.
2 changes: 1 addition & 1 deletion app/Models/Wiki/Video.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class Video extends BaseModel implements Streamable, Viewable
/**
* The accessors to append to the model's array form.
*
* @var array
* @var array<int, string>
*/
protected $appends = [
Video::ATTRIBUTE_TAGS,
Expand Down
1 change: 1 addition & 0 deletions app/Rules/Api/DistinctIgnoringDirectionRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public function validate(string $attribute, mixed $value, Closure $fail): void
{
$values = Str::of($value)->explode(',');

/** @phpstan-ignore-next-line */
$duplicateValues = $values->duplicates(function (mixed $sort) {
if (is_string($sort) && Str::startsWith($sort, '-')) {
return Str::replaceFirst('-', '', $sort);
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@
},
"require-dev": {
"brianium/paratest": "^7.0",
"larastan/larastan": "^2.9",
"laravel/pint": "^1.6",
"laravel/sail": "^1.28",
"mockery/mockery": "^1.5.1",
"nunomaduro/collision": "^7.0",
"nunomaduro/larastan": "^2.4",
"phpunit/phpunit": "^10.1",
"predis/predis": "^2.0",
"spatie/laravel-ignition": "^2.0"
Expand Down
207 changes: 103 additions & 104 deletions 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 database/factories/Admin/AnnouncementFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class AnnouncementFactory extends Factory
/**
* Define the model's default state.
*
* @phpstan-ignore-next-line
* @return array
*/
public function definition(): array
Expand Down
1 change: 1 addition & 0 deletions database/factories/Admin/DumpFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class DumpFactory extends Factory
/**
* Define the model's default state.
*
* @phpstan-ignore-next-line
* @return array
*/
public function definition(): array
Expand Down
1 change: 1 addition & 0 deletions database/factories/Admin/FeatureFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class FeatureFactory extends Factory
/**
* Define the model's default state.
*
* @phpstan-ignore-next-line
* @return array
*/
public function definition(): array
Expand Down
1 change: 1 addition & 0 deletions database/factories/Admin/FeaturedThemeFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class FeaturedThemeFactory extends Factory
/**
* Define the model's default state.
*
* @phpstan-ignore-next-line
* @return array
*/
public function definition(): array
Expand Down
1 change: 1 addition & 0 deletions database/factories/Auth/UserFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class UserFactory extends Factory
/**
* Define the model's default state.
*
* @phpstan-ignore-next-line
* @return array
*/
public function definition(): array
Expand Down
1 change: 1 addition & 0 deletions database/factories/Discord/DiscordThreadFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class DiscordThreadFactory extends Factory
/**
* Define the model's default state.
*
* @phpstan-ignore-next-line
* @return array
*/
public function definition(): array
Expand Down
1 change: 1 addition & 0 deletions database/factories/Document/PageFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class PageFactory extends Factory
/**
* Define the model's default state.
*
* @phpstan-ignore-next-line
* @return array
*/
public function definition(): array
Expand Down
1 change: 1 addition & 0 deletions database/factories/List/External/ExternalEntryFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class ExternalEntryFactory extends Factory
/**
* Define the model's default state.
*
* @phpstan-ignore-next-line
* @return array
*/
public function definition(): array
Expand Down
1 change: 1 addition & 0 deletions database/factories/List/ExternalProfileFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class ExternalProfileFactory extends Factory
/**
* Define the model's default state.
*
* @phpstan-ignore-next-line
* @return array
*/
public function definition(): array
Expand Down
1 change: 1 addition & 0 deletions database/factories/List/Playlist/PlaylistTrackFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class PlaylistTrackFactory extends Factory
/**
* Define the model's default state.
*
* @phpstan-ignore-next-line
* @return array
*/
public function definition(): array
Expand Down
1 change: 1 addition & 0 deletions database/factories/List/PlaylistFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class PlaylistFactory extends Factory
/**
* Define the model's default state.
*
* @phpstan-ignore-next-line
* @return array
*/
public function definition(): array
Expand Down
1 change: 1 addition & 0 deletions database/factories/Pivots/List/PlaylistImageFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class PlaylistImageFactory extends Factory
/**
* Define the model's default state.
*
* @phpstan-ignore-next-line
* @return array
*/
public function definition(): array
Expand Down
1 change: 1 addition & 0 deletions database/factories/Pivots/Wiki/AnimeImageFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class AnimeImageFactory extends Factory
/**
* Define the model's default state.
*
* @phpstan-ignore-next-line
* @return array
*/
public function definition(): array
Expand Down
1 change: 1 addition & 0 deletions database/factories/Pivots/Wiki/AnimeResourceFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class AnimeResourceFactory extends Factory
/**
* Define the model's default state.
*
* @phpstan-ignore-next-line
* @return array
*/
public function definition(): array
Expand Down
1 change: 1 addition & 0 deletions database/factories/Pivots/Wiki/AnimeSeriesFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class AnimeSeriesFactory extends Factory
/**
* Define the model's default state.
*
* @phpstan-ignore-next-line
* @return array
*/
public function definition(): array
Expand Down
1 change: 1 addition & 0 deletions database/factories/Pivots/Wiki/AnimeStudioFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class AnimeStudioFactory extends Factory
/**
* Define the model's default state.
*
* @phpstan-ignore-next-line
* @return array
*/
public function definition(): array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class AnimeThemeEntryVideoFactory extends Factory
/**
* Define the model's default state.
*
* @phpstan-ignore-next-line
* @return array
*/
public function definition(): array
Expand Down
Loading

0 comments on commit 6b1b612

Please sign in to comment.