Commit 4e22354b authored by Guillaume Perréal's avatar Guillaume Perréal
Browse files

Evite d'utiliser un nom de variable invalide pour

parent ee5cada3
......@@ -76,9 +76,6 @@ class ArrayType extends AbstractCollection
private function getItemName(): string
$valueUsage = $this->getValueType()->getUsage();
$valueName = strtr($valueUsage, '[]<>', '[]__');
return Inflector::singularize(Inflector::camelize($valueName));
return preg_replace('/\W+/', '', $this->getValueType()->getUsage());
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment