thecodingmachine / mouf

The Mouf PHP framework: an open-source PHP framework providing an easy way to download, install, use and reuse components, with a graphical user interface.
MIT License
54 stars 28 forks source link

Traits management error #45

Closed moufmouf closed 11 years ago

moufmouf commented 11 years ago

When a trait has a function that is a setter renamed, this messes up with Mouf completely.

Here is a sample:

use ChildrenTrait { ChildrenTrait::setChildren as setChildrenTrue; }

When looking at an instance, this creates this error:

Fatal error: Uncaught exception 'ReflectionException' with message 'Method Mouf\Html\Tags\ChildrenTrait::setChildrenTrue() does not exist' in /home/david/projects/mouf/mouf2/vendor/mouf/mouf/src/Mouf/Reflection/MoufReflectionParameter.php on line 60