Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Ltrim issue in LexikFormFilterBundle/Event/Subscriber/DoctrineORMSubscriber.php #359

Open
alexandrupietrareanu opened this issue Jan 7, 2022 · 0 comments

Comments

@alexandrupietrareanu
Copy link

Line 81: $fieldName = ltrim($event->getField(), $rootPart->getAlias() . '.'); is not behaving as expected.
Instead of replacing the string containing the alias and ".", it also replaces the first character after the point if is found in the second parameter.

From the php documentation:
https://www.php.net/manual/en/function.ltrim.php

characters
You can also specify the characters you want to strip, by means of the characters parameter. Simply list all characters that you want to be stripped. With .. you can specify a range of characters.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant