Skip to content

Commit 91556ee

Browse files
committed
specify the class specifically
1 parent 1f82087 commit 91556ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Commands/ExportPostmanCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ protected function parseRulesIntoHumanReadable($attribute, $rules): string
313313
// ... bail if user has asked for non interpreted strings:
314314
if (! $this->config['rules_to_human_readable']) {
315315
foreach ($rules as $i => $rule) {
316-
if (is_object($rule)) {
316+
if (is_object($rule) && is_subclass_of($rule, Rule::class)) {
317317
unset($rules[$i]);
318318
}
319319
}

0 commit comments

Comments
 (0)