Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pôle IS
Bundles Symfony 2
ng-model-generator-bundle
Commits
4e22354b
Commit
4e22354b
authored
Apr 02, 2020
by
Guillaume Perréal
Browse files
Evite d'utiliser un nom de variable invalide pour Array.map.
parent
ee5cada3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/php/Models/Types/ArrayType.php
View file @
4e22354b
...
...
@@ -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
());
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment