[Fixed] @var in function content

0 votes
asked May 9, 2016 in Solved by jvgamers (350 points)
recategorized Oct 5, 2016 by ludek.vodicka

There is an issue with some annotations in Entity class.

For example, i got a __clone() method in my Entity class.

Inside of this function, i have this code :

            /** @var MyEntity $item */
            foreach ($this->items as $item) {
                $item = clone $item;
                $item->setActive(true);
            }

When i export my entities in skipper, i don't know why but he changes it into :

           foreach ($this->items as $item) {
                $item = clone $item;
                $item->setActive(true);
            }/** @var MyEntity $item */

Can you see it cause it's really annoying, i have to delete or change those comments if i don't want to be in trouble...

Thanks

commented May 28, 2016 by ludek.vodicka Skipper developer (140,450 points)

Can you please send me (to [email protected]) example of php file and skipper file how to reproduce this issue? It's sufficient to send any dummy skipper project only with one entity how to reproduce this issue.

Please log in or register to answer this question.

...