mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-3493: New (PHP 5.5) "class" keyword - wrong parsing by EntityGenerator #4304
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Jan 14, 2015).
Originally assigned to: @Ocramius on GitHub.
Jira issue originally created by user lukasmaz:
Doctrine command "generate:entitites" is returning Notice Error:
Notice: Uninitialized string offset: 1 in \vendor\doctrine\orm\lib\Doctrine\ORM\Tools\EntityGenerator.php line 674
When trying to use this command on class containing function which is using introduced in 5.5 syntax ClassName::class.
Even simple:
public static function getClass(){
return self::class;
}
is generating a problem.
@doctrinebot commented on GitHub (Jan 14, 2015):
@doctrinebot commented on GitHub (Jan 14, 2015):
Comment created by @ocramius:
[~lukasmaz] can you come up with a test case to be added to doctrine/common?
See
b44549dcc9/tests/Doctrine/Tests/Common/Proxy/ProxyClassGeneratorTest.phpas a reference for that.@doctrinebot commented on GitHub (Jan 14, 2015):
Comment created by @ocramius:
Ah, my mistake: this is about the entity generator. See
9c3cb57931/tests/Doctrine/Tests/ORM/Tools/EntityGeneratorTest.phpinstead.@doctrinebot commented on GitHub (Jan 14, 2015):
Comment created by lukasmaz:
[~ocramius] to be honest this stuff is still new for me - I am learning Symfony2&Doctrine and wanted to report this issue - to help somehow :) I do not fully understand whats going on in those test cases :/
@doctrinebot commented on GitHub (Jan 14, 2015):
Comment created by @ocramius:
[~lukasmaz] we're all pretty much in a rush to get 2.5 out, so please consider hopping in IRC and I should help you setting up the test suite.
irc.freenode.net, channel #doctrine-dev, poke "Ocramius" there
@doctrinebot commented on GitHub (Jan 14, 2015):
Comment created by asprega:
I'd like to take care of the issue if not yet assigned.
@doctrinebot commented on GitHub (Jan 15, 2015):
Comment created by @ocramius:
Handled in DDC-3502
@doctrinebot commented on GitHub (Jan 15, 2015):
Issue was closed with resolution "Fixed"