Re: possible namespace bug?

From: Date: Fri, 21 Jan 2011 14:09:25 +0000
Subject: Re: possible namespace bug?
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-310956@lists.php.net to get a copy of this message
On Thu, Jan 20, 2011 at 5:27 PM, David Harkness wrote: > On Thu, Jan 20, 2011 at 4:26 PM, Tommy Pham wrote: >> >> Anyway, I found the problem:  \N   in >> use org\puremvc\php\patterns\observer\Notifier; > > AFAIK \n is only processed inside double-quoted strings and here-docs. The > \N has no special meaning beyond a namespace separator and a capital N. > My guess is the same as Adam's. Since I don't see how you declare > INotification, I think it's getting confused when using namespaces. In the > top part, PHP assumes the class must be in the org\puremvc\php\interfaces > namespace whereas in SimpleCommand's declaration, INotification is assumed > to be in the org\puremvc\php\patterns\command namespace. This causes their > declarations to be mismatched. > David > Hi David, It was a CNP error from several files that's how the INotification got left out on the e-mail. You're right. I've must had a brain fart yesterday afternoon. Thanks, Tommy

« previous php.general (#310956) next »