Skip to content

Commit efb85ed

Browse files
committed
Fix doctrine/inflector deprecations and allow to install v2
1 parent ac771ff commit efb85ed

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Mapping/Caser.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
namespace ONGR\ElasticsearchBundle\Mapping;
1313

14-
use Doctrine\Common\Inflector\Inflector;
14+
use Doctrine\Inflector\InflectorFactory;
1515

1616
/**
1717
* Utility for string case transformations.
@@ -27,7 +27,7 @@ class Caser
2727
*/
2828
public static function camel($string)
2929
{
30-
return Inflector::camelize($string);
30+
return InflectorFactory::create()->build()->camelize($string);
3131
}
3232

3333
/**

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"symfony/property-access": "^4.4|^5.0",
2323
"doctrine/annotations": "^1.6",
2424
"doctrine/cache": "^1.7",
25-
"doctrine/inflector": "^1.3",
25+
"doctrine/inflector": "^1.4 || ^2.0",
2626
"doctrine/collections": "^1.5",
2727
"monolog/monolog": "^1.24",
2828
"elasticsearch/elasticsearch": "^6.0",

0 commit comments

Comments
 (0)