Skip to content

Fix tests doctrine deprecation #2098

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 13, 2018
Merged

Fix tests doctrine deprecation #2098

merged 1 commit into from
Jul 13, 2018

Conversation

soyuka
Copy link
Member

@soyuka soyuka commented Jul 13, 2018

@dunglas I think that the ClassLoader is used by symfony in https://github.com/symfony/symfony/blob/master/src/Symfony/Bridge/Doctrine/Test/DoctrineTestHelper.php#L56 if that's not the case I don't get it (see DoctrineOrmFilterTestCase).

I'm really not sure how we can fix those deprecations right now.

@dunglas
Copy link
Member

dunglas commented Jul 13, 2018

See symfony/symfony#27939

@soyuka soyuka merged commit 90974e4 into api-platform:2.3 Jul 13, 2018
@soyuka soyuka deleted the fix-tests branch July 13, 2018 14:14
@@ -14,8 +14,6 @@
],
"require": {
"php": ">=7.1",

"doctrine/inflector": "^1.0",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes this must be reverted

@TerjeBr
Copy link

TerjeBr commented Jan 22, 2019

Could you please merge this into branch v2.2 as well?

We are stuck with symfony 3.4 on our project, so we cannot use version 2.3 of API platform (it requires symfony serializer 4.1). And in our logs we get all the time this annoying:
php.INFO: User Deprecated: Doctrine\Common\Util\Inflector is deprecated. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Doctrine\\Common\\Util\\Inflector is deprecated. at /var/www/allianz-portal/vendor/doctrine/common/lib/Doctrine/Common/Util/Inflector.php:8)"} []

@soyuka
Copy link
Member Author

soyuka commented Jan 28, 2019

WDYT @dunglas should we patch this on 2.2?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants