You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Even if datum can be considered to be the singular form of data, I think in the case of the lib use it can be quite confusing. Singularization of data returns data, as one would expect.
The text was updated successfully, but these errors were encountered:
AFAICT Inflector is designed to work with single words. Trying to make it work with two words (separated by either space or whatever else like _ in your case) is outside of the scope of interest of this library.
That's possible, however I opened this topic in Laravel and they referenced me here, it can cause big problems in some cases - laravel/framework#31517 (comment)
looks like the behaviour has changed or Laravel's making some further string manipulation (not quite likely according to their response), however tested doctrine/inflector: 1.3.1
echo Inflector::singularize('data'); // results in datum - I'd expect data echo Inflector::singularize('personal_data'); // results in personal_datum - I'd expect personal_data
echo Inflector::pluralize('data'); // results in data as expected echo Inflector::pluralize('personal_data'); // results in personal_datas - I'd expect personal_data
Singularization of
foo_data
returnsfoo_datum
Even if datum can be considered to be the singular form of data, I think in the case of the lib use it can be quite confusing. Singularization of
data
returnsdata
, as one would expect.The text was updated successfully, but these errors were encountered: