diff --git a/src/Rector/MethodCall/EloquentOrderByToLatestOrOldestRector.php b/src/Rector/MethodCall/EloquentOrderByToLatestOrOldestRector.php index d65d1464..e2372761 100644 --- a/src/Rector/MethodCall/EloquentOrderByToLatestOrOldestRector.php +++ b/src/Rector/MethodCall/EloquentOrderByToLatestOrOldestRector.php @@ -174,6 +174,7 @@ public function configure(array $configuration): void { $allowedPatterns = $configuration[self::ALLOWED_PATTERNS] ?? []; Assert::isArray($allowedPatterns); + Assert::allString($allowedPatterns); $this->allowedPatterns = $allowedPatterns; }