Skip to content

Commit 90974e4

Browse files
authored
Merge pull request #2098 from soyuka/fix-tests
Fix tests doctrine deprecation
2 parents 132351b + f18d329 commit 90974e4

File tree

6 files changed

+5
-7
lines changed

6 files changed

+5
-7
lines changed

composer.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
],
1515
"require": {
1616
"php": ">=7.1",
17-
18-
"doctrine/inflector": "^1.0",
1917
"psr/cache": "^1.0",
2018
"psr/container": "^1.0",
2119
"symfony/http-foundation": "^3.1 || ^4.0",

src/Annotation/AttributesHydratorTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
namespace ApiPlatform\Core\Annotation;
2323

2424
use ApiPlatform\Core\Exception\InvalidArgumentException;
25-
use Doctrine\Common\Util\Inflector;
25+
use Doctrine\Common\Inflector\Inflector;
2626

2727
/**
2828
* Hydrates attributes from annotation's parameters.

src/Bridge/Symfony/Routing/RouteNameGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
use ApiPlatform\Core\Api\OperationType;
1717
use ApiPlatform\Core\Api\OperationTypeDeprecationHelper;
1818
use ApiPlatform\Core\Exception\InvalidArgumentException;
19-
use Doctrine\Common\Util\Inflector;
19+
use Doctrine\Common\Inflector\Inflector;
2020

2121
/**
2222
* Generates the Symfony route name associated with an operation name and a resource short name.

src/GraphQl/Type/SchemaBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
use ApiPlatform\Core\Metadata\Resource\Factory\ResourceNameCollectionFactoryInterface;
2424
use ApiPlatform\Core\Metadata\Resource\ResourceMetadata;
2525
use ApiPlatform\Core\Util\ClassInfoTrait;
26-
use Doctrine\Common\Util\Inflector;
26+
use Doctrine\Common\Inflector\Inflector;
2727
use GraphQL\Type\Definition\InputObjectType;
2828
use GraphQL\Type\Definition\InterfaceType;
2929
use GraphQL\Type\Definition\ObjectType;

src/Operation/DashPathSegmentNameGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
namespace ApiPlatform\Core\Operation;
1515

16-
use Doctrine\Common\Util\Inflector;
16+
use Doctrine\Common\Inflector\Inflector;
1717

1818
/**
1919
* Generate a path name with a dash separator according to a string and whether it's a collection or not.

src/Operation/UnderscorePathSegmentNameGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
namespace ApiPlatform\Core\Operation;
1515

16-
use Doctrine\Common\Util\Inflector;
16+
use Doctrine\Common\Inflector\Inflector;
1717

1818
/**
1919
* Generate a path name with an underscore separator according to a string and whether it's a collection or not.

0 commit comments

Comments
 (0)