Skip to content

Commit

Permalink
FormPropertyUtil: Call reset() instead of \reset().
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominic Tubach committed Oct 4, 2023
1 parent 76478ba commit ae6a12f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Form/Control/Util/FormPropertyUtil.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ final class FormPropertyUtil {
* @phpstan-param array<int|string> $propertyPath
*/
public static function getFormNameForPropertyPath(array $propertyPath): string {
$formName = (string) \reset($propertyPath);
$formName = (string) reset($propertyPath);
while (FALSE !== ($next = next($propertyPath))) {
$formName .= '[' . $next . ']';
}
Expand Down

0 comments on commit ae6a12f

Please sign in to comment.