<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: NetBeans + PHP: type hinting</title>
	<atom:link href="http://www.phpmag.ru/2009/07/15/netbeans-php-type-hinting/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.phpmag.ru/2009/07/15/netbeans-php-type-hinting/</link>
	<description>Suum cuique</description>
	<lastBuildDate>Mon, 19 Jul 2010 08:34:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Rapha?l Dehousse &#187; Inline autocompletion / type hinting with Eclipse and NetBeans</title>
		<link>http://www.phpmag.ru/2009/07/15/netbeans-php-type-hinting/comment-page-1/#comment-491</link>
		<dc:creator>Rapha?l Dehousse &#187; Inline autocompletion / type hinting with Eclipse and NetBeans</dc:creator>
		<pubDate>Sat, 01 Aug 2009 14:34:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpmag.ru/?p=676#comment-491</guid>
		<description>[...] to a post by about NetBeans + PHP: type hinting, I discovered a really great feature in Eclipse and NetBeans : inline autocompletion / type [...]</description>
		<content:encoded><![CDATA[<p>[...] to a post by about NetBeans + PHP: type hinting, I discovered a really great feature in Eclipse and NetBeans : inline autocompletion / type [...]</p>
<link rel="stylesheet" type="text/css" href="http://www.phpmag.ru/wp-content/plugins/tippy/dom_tooltip.css" media="screen" /><script type="text/javascript" src="http://www.phpmag.ru/wp-content/plugins/tippy/dom_tooltip.js"></script>]]></content:encoded>
	</item>
	<item>
		<title>By: sobstel</title>
		<link>http://www.phpmag.ru/2009/07/15/netbeans-php-type-hinting/comment-page-1/#comment-489</link>
		<dc:creator>sobstel</dc:creator>
		<pubDate>Fri, 31 Jul 2009 18:02:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpmag.ru/?p=676#comment-489</guid>
		<description>I&#039;ve just played with it a bit and I&#039;ve found a sort of workaround. You can create dummy class (similarly to the following post http://www.mybelovedphp.com/2009/01/27/netbeans-revisited-code-completion-for-code-igniter-ii/) with new definition for factory that will overwrite original one. You omit @return tag there, e.g.

class Magic {
  /**
   * @param string $name
   */
  static public function factory($name){}
}

then when you want to use it write is like that:

$foo = Magic::factory(&#039;name&#039;); 
/* @var $foo Some_Specific_Class */
$foo-&gt; // and auto-copletion works

Note! @var inline comment must be below assignment. It is pretty dirty, but it actually works. Checked in NB 6.7.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve just played with it a bit and I&#8217;ve found a sort of workaround. You can create dummy class (similarly to the following post <a href="http://www.mybelovedphp.com/2009/01/27/netbeans-revisited-code-completion-for-code-igniter-ii/)" rel="nofollow">http://www.mybelovedphp.com/2009/01/27/netbeans-revisited-code-completion-for-code-igniter-ii/)</a> with new definition for factory that will overwrite original one. You omit @return tag there, e.g.</p>
<p>class Magic {<br />
  /**<br />
   * @param string $name<br />
   */<br />
  static public function factory($name){}<br />
}</p>
<p>then when you want to use it write is like that:</p>
<p>$foo = Magic::factory(&#8216;name&#8217;);<br />
/* @var $foo Some_Specific_Class */<br />
$foo-&gt; // and auto-copletion works</p>
<p>Note! @var inline comment must be below assignment. It is pretty dirty, but it actually works. Checked in NB 6.7.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sobstel</title>
		<link>http://www.phpmag.ru/2009/07/15/netbeans-php-type-hinting/comment-page-1/#comment-488</link>
		<dc:creator>sobstel</dc:creator>
		<pubDate>Fri, 31 Jul 2009 17:32:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpmag.ru/?p=676#comment-488</guid>
		<description>It looks like if you don&#039;t set @return on Magic::factory() it will work ok, but it&#039;s not too elegant not to define phpdocs. It would be great if NetBeans always prefer what you define via @var inline comment.</description>
		<content:encoded><![CDATA[<p>It looks like if you don&#8217;t set @return on Magic::factory() it will work ok, but it&#8217;s not too elegant not to define phpdocs. It would be great if NetBeans always prefer what you define via @var inline comment.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rapha?l Dehousse</title>
		<link>http://www.phpmag.ru/2009/07/15/netbeans-php-type-hinting/comment-page-1/#comment-484</link>
		<dc:creator>Rapha?l Dehousse</dc:creator>
		<pubDate>Thu, 30 Jul 2009 12:10:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpmag.ru/?p=676#comment-484</guid>
		<description>Hello,

Did you find how you did it ?

Thanks !

Cheers,

Rapha?l</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>Did you find how you did it ?</p>
<p>Thanks !</p>
<p>Cheers,</p>
<p>Rapha?l</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Darkredz</title>
		<link>http://www.phpmag.ru/2009/07/15/netbeans-php-type-hinting/comment-page-1/#comment-465</link>
		<dc:creator>Darkredz</dc:creator>
		<pubDate>Wed, 22 Jul 2009 11:05:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpmag.ru/?p=676#comment-465</guid>
		<description>I am a great NetBeans fan and the IDE have been working really well with DooPHP framework with all the autocomplete and code hinting.
Kudos to Netbeans!</description>
		<content:encoded><![CDATA[<p>I am a great NetBeans fan and the IDE have been working really well with DooPHP framework with all the autocomplete and code hinting.<br />
Kudos to Netbeans!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Victor Farazdagi</title>
		<link>http://www.phpmag.ru/2009/07/15/netbeans-php-type-hinting/comment-page-1/#comment-449</link>
		<dc:creator>Victor Farazdagi</dc:creator>
		<pubDate>Fri, 17 Jul 2009 20:28:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpmag.ru/?p=676#comment-449</guid>
		<description>Well, I re-checked with clean NetBeans install - and you are right, method described above doesn&#039;t work as expected. I should definitely have tweaked IDE (I am on NB 6.5 btw), so that it behaves differently. Just not sure what that might be. Would review my configuration in depth, and try to figure that out..</description>
		<content:encoded><![CDATA[<p>Well, I re-checked with clean NetBeans install &#8211; and you are right, method described above doesn&#8217;t work as expected. I should definitely have tweaked IDE (I am on NB 6.5 btw), so that it behaves differently. Just not sure what that might be. Would review my configuration in depth, and try to figure that out..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rapha?l Dehousse</title>
		<link>http://www.phpmag.ru/2009/07/15/netbeans-php-type-hinting/comment-page-1/#comment-448</link>
		<dc:creator>Rapha?l Dehousse</dc:creator>
		<pubDate>Fri, 17 Jul 2009 11:24:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpmag.ru/?p=676#comment-448</guid>
		<description>Hello,

Are you sure you did not configure sth else to have this ?

Because, I just downloaded Netbeans 6.7 and tried what you&#039;re saying but I did not succeed

Thanks for help !

Cheers,

Rapha?l</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>Are you sure you did not configure sth else to have this ?</p>
<p>Because, I just downloaded Netbeans 6.7 and tried what you&#8217;re saying but I did not succeed</p>
<p>Thanks for help !</p>
<p>Cheers,</p>
<p>Rapha?l</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Giorgio Sironi</title>
		<link>http://www.phpmag.ru/2009/07/15/netbeans-php-type-hinting/comment-page-1/#comment-447</link>
		<dc:creator>Giorgio Sironi</dc:creator>
		<pubDate>Fri, 17 Jul 2009 11:12:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpmag.ru/?p=676#comment-447</guid>
		<description>It is a smart editor and I used it a lot for Java work, but it is too heavyweight for my work on php anyway.</description>
		<content:encoded><![CDATA[<p>It is a smart editor and I used it a lot for Java work, but it is too heavyweight for my work on php anyway.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
