Skip to content

Commit

Permalink
Fix doctrine/inflector deprecations and allow to install v2
Browse files Browse the repository at this point in the history
  • Loading branch information
jdreesen committed Aug 26, 2020
1 parent ac771ff commit efb85ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Mapping/Caser.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

namespace ONGR\ElasticsearchBundle\Mapping;

use Doctrine\Common\Inflector\Inflector;
use Doctrine\Inflector\InflectorFactory;

/**
* Utility for string case transformations.
Expand All @@ -27,7 +27,7 @@ class Caser
*/
public static function camel($string)
{
return Inflector::camelize($string);
return InflectorFactory::create()->build()->camelize($string);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"symfony/property-access": "^4.4|^5.0",
"doctrine/annotations": "^1.6",
"doctrine/cache": "^1.7",
"doctrine/inflector": "^1.3",
"doctrine/inflector": "^1.4 || ^2.0",
"doctrine/collections": "^1.5",
"monolog/monolog": "^1.24",
"elasticsearch/elasticsearch": "^6.0",
Expand Down

0 comments on commit efb85ed

Please sign in to comment.