Skip to content

Commit 826d2d9

Browse files
author
Vignesh C
committed
bug fix for string to object exception
1 parent fa81585 commit 826d2d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Parameters/Concerns/GeneratesFromRules.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ protected function getEnumValues(array $paramRules)
6060
private function getInParameter(array $paramRules)
6161
{
6262
foreach ($paramRules as $rule) {
63-
if (starts_with($rule, 'in:')) {
63+
if (is_string($rule) && starts_with($rule, 'in:')) {
6464
return $rule;
6565
}
6666
}

0 commit comments

Comments
 (0)