Re: [PHP] ZendCodeAnalyzer oddity

2012-10-31 Thread tamouse mailing lists
On Wed, Oct 31, 2012 at 3:42 PM, Christoph Boget wrote: > Consider the following code: > > class bob > { > static function factory() > { > echo 'In factory!'; > } > } > > bob::factory(); > $var = 'bob'; > $var::factory(); > ?> > > When I run this, "In Factory!" is displayed twice,

[PHP] ZendCodeAnalyzer oddity

2012-10-31 Thread Christoph Boget
Consider the following code: '; } } bob::factory(); $var = 'bob'; $var::factory(); ?> When I run this, "In Factory!" is displayed twice, as I would expect. So by all accounts, there's nothing wrong with the code. However, when I run that file through ZendCodeAnalyzer, I get the followin