You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.
The docs do not contain any warnings about this problem, which makes it annoying to debug. The error occurs when using anything in a namespace. PHPs typical way of dealing with this is to add the (overused) use statement to the top with the namespace and the class.
However, Zend\Soap\AutoDiscover does not pick up that use statement and instead only uses the classname.
<?phpusemyNameSpace\MyClass;
class Foo
{
/** * @varMyClass */public$customer;
}
That fails. When Zend parses it, it will not parse the namespace, just the classname "MyClass", and then fail.
For it to work, it must be done like this:
<?phpclass Foo
{
/** * The backspace qualifier is onlynecessaryifthisisnamespaced. * @var\myNameSpace\MyClass */public$customer;
}
A code fix is probably above and beyond, but some docs highlighting that problem would help.
The text was updated successfully, but these errors were encountered:
The docs do not contain any warnings about this problem, which makes it annoying to debug. The error occurs when using anything in a namespace. PHPs typical way of dealing with this is to add the (overused)
use
statement to the top with the namespace and the class.However,
Zend\Soap\AutoDiscover
does not pick up that use statement and instead only uses the classname.That fails. When Zend parses it, it will not parse the namespace, just the classname "MyClass", and then fail.
For it to work, it must be done like this:
A code fix is probably above and beyond, but some docs highlighting that problem would help.
The text was updated successfully, but these errors were encountered: