Skip to content

Commit 844fea6

Browse files
committed
Deprecating Inflector class
1 parent 1c80da1 commit 844fea6

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

docs/v3-to-v4-update.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,7 @@ The following deprecated methods have been removed in this release:
1414
* `Inflector::getInstance()`: Use the static methods without an instance instead.
1515
* `Inflector::toPlural()`: Use static `Doctrine\Common\Inflector\Inflector::pluralize()`
1616
* `Inflector::toSingular()`: Use static `Doctrine\Common\Inflector\Inflector::singularize()`
17+
18+
### The `Inflector` class has been deprecated
19+
20+
The `Inflector` class in this package depends on the `doctrine/inflector` v1 package, which has been EOL for some time. The newer v2 version of that package does not allow our class to inherit from their `Inflector` class anymore. At the same time, the new `doctrine/inflector` package provides basically everything our `Inflector` class supplied, so our class is not necessary anymore. Thus the `Inflector` class in this package is deprecated and should not be used anymore. Use the `doctrine/inflector` package directly instead. This class will be removed in 5.0 of this package.

src/Inflector.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
* The Inflector transforms words
1818
*
1919
* @since 1.0
20+
* @deprecated 5.0 Use doctrine/inflector package as complete replacement instead.
2021
*/
2122
class Inflector extends DoctrineInflector
2223
{

0 commit comments

Comments
 (0)