box/augmented_types — pull request #3 by scottaubrey (2014-02-02 21:13:06+00:00)
Title: namespace import don't work

When imported a class from another namespace with a use statement (use Vendor\Package1\Class1;), then using the imported name in an annotation, augmented_types throws this error:

Fatal error: Wrong type encountered for argument 1 of function test, was expecting a Vendor\Package2\Class1 but got a Vendor\Package1\Class1

Without augmented types turned on, the method hint works fine.

Assuming the annotation refers to the current namespace. I see form other tests that this is *probably* not what you want, and certainly all out docblocks have imported namespaces, but there is no explicit test for it

I've written test case to show the behaviour, currently fails. Unfortunately I know no C, so I've not delved into the extension itself.

Is this expected to work, or do we just write weird docblocks?