Skip to content

Commit b909eb4

Browse files
committed
fix(test): cast array key to string for str_starts_with
1 parent 3fbcbd7 commit b909eb4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/Core/Reflect/ReflectorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ public function __construct(
309309
);
310310

311311
// Should not have any nested rules for empty_field since EmptyClass has no constructor parameters
312-
$nestedKeys = array_filter(array_keys($rules), fn ($key) => str_starts_with($key, 'empty_field.'));
312+
$nestedKeys = array_filter(array_keys($rules), fn ($key) => str_starts_with((string) $key, 'empty_field.'));
313313
$this->assertEmpty($nestedKeys);
314314
}
315315
}

0 commit comments

Comments
 (0)