Symfony: [Valdiator] PHP Fatal error: Cannot use 'True' as class name as it is reserved

Created on 13 Apr 2015  路  3Comments  路  Source: symfony/symfony

Hello guys, i'am getting an error while running my tests on PHP 7

will be this changed somehow in the future?

https://travis-ci.org/Opentribes/Core/jobs/58144458

Most helpful comment

I have a similar problem. I fix it when i change annotation "@AssertTrue" by "@AssertIsTrue" in my entity.

All 3 comments

Yes it will. See #14086 for the issue tracking this, and #14228 for the WIP fixing this. I'm closing this issue as duplicate.

I have a similar problem. I fix it when i change annotation "@AssertTrue" by "@AssertIsTrue" in my entity.

I have a similar problem. I fix it when i change annotation "@AssertTrue" by "@AssertIsTrue" in my entity.

Confirmed working. Thanks.

Was this page helpful?
0 / 5 - 0 ratings