Skip to content

Commit

Permalink
Remove guards for previous Laravel Versions
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanzweifel committed Mar 15, 2024
1 parent 3f6de38 commit a1a7e6f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions src/Classifiers/CustomCastClassifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ public function name(): string

public function satisfies(ReflectionClass $class): bool
{
if ((float) app()->version() < 7) {
return false;
}

return $class->implementsInterface(CastsAttributes::class) ||
$class->implementsInterface(CastsInboundAttributes::class);
}
Expand Down
4 changes: 0 additions & 4 deletions src/Classifiers/DatabaseFactoryClassifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ public function name(): string

public function satisfies(ReflectionClass $class): bool
{
if ((float) app()->version() < 8) {
return false;
}

return $class->isSubclassOf(Factory::class);
}

Expand Down

0 comments on commit a1a7e6f

Please sign in to comment.