Skip to content

Conversation

@davidindra
Copy link

Updated to $class->getProperties() to avoid "User Deprecated: Missing annotation @Property for Nette\PhpGenerator\ClassType::$properties" exception.
snimek obrazovky porizeny 2016-06-26 00 26 50

updated to $class->getProperties() to avoid "User Deprecated: Missing annotation @Property for Nette\PhpGenerator\ClassType::$properties" exception
@davidindra
Copy link
Author

I can't understand pretty well why tests have failed - does it have any relationship with my change?

@davidindra
Copy link
Author

I've found just some warnings about configuration file deprecated sections in Travis CI report - I don't think that it can be caused by me.

public function afterCompile(Nette\PhpGenerator\ClassType $class)
{
$meta = $class->properties['meta'];
$meta = $class->getProperties()['meta'];
Copy link
Contributor

@bckp bckp Jun 29, 2016

Choose a reason for hiding this comment

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

$class->getProperty('meta');

Isn't this better??

Copy link
Author

Choose a reason for hiding this comment

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

You are right, that's better.

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.

2 participants