svn: /pear/packages/PHP_CodeSniffer/trunk/CodeSniffer/ File.php Standards/Squiz/Tests/Commenting/FunctionCommentUnitTest.inc

From: Date: Sun, 05 Sep 2010 23:29:15 +0000
Subject: svn: /pear/packages/PHP_CodeSniffer/trunk/CodeSniffer/ File.php Standards/Squiz/Tests/Commenting/FunctionCommentUnitTest.inc
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-60255@lists.php.net to get a copy of this message
squiz Sun, 05 Sep 2010 23:29:15 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=303060 Log: The namespace token cant appear in type hints because it is reserved Changed paths: U pear/packages/PHP_CodeSniffer/trunk/CodeSniffer/File.php U pear/packages/PHP_CodeSniffer/trunk/CodeSniffer/Standards/Squiz/Tests/Commenting/FunctionCommentUnitTest.inc Modified: pear/packages/PHP_CodeSniffer/trunk/CodeSniffer/File.php =================================================================== --- pear/packages/PHP_CodeSniffer/trunk/CodeSniffer/File.php 2010-09-05 16:14:46 UTC (rev 303059) +++ pear/packages/PHP_CodeSniffer/trunk/CodeSniffer/File.php 2010-09-05 23:29:15 UTC (rev 303060) @@ -1969,7 +1969,6 @@ $typeHint .= $this->_tokens[$i]['content']; break; case T_NS_SEPARATOR: - case T_NAMESPACE: // Part of a type hint. $typeHint .= $this->_tokens[$i]['content']; break; Modified: pear/packages/PHP_CodeSniffer/trunk/CodeSniffer/Standards/Squiz/Tests/Commenting/FunctionCommentUnitTest.inc =================================================================== --- pear/packages/PHP_CodeSniffer/trunk/CodeSniffer/Standards/Squiz/Tests/Commenting/FunctionCommentUnitTest.inc 2010-09-05 16:14:46 UTC (rev 303059) +++ pear/packages/PHP_CodeSniffer/trunk/CodeSniffer/Standards/Squiz/Tests/Commenting/FunctionCommentUnitTest.inc 2010-09-05 23:29:15 UTC (rev 303060) @@ -480,11 +480,11 @@ /** * Comment. * - * @param \other\namespace\item $test An argument. + * @param \other\ns\item $test An argument. * * @return mixed */ -function test(\other\namespace\item $test) +function test(\other\ns\item $test) { return $test; @@ -497,7 +497,7 @@ * * @return mixed */ -function test(\other\namespace\item $test) +function test(\other\ns\item $test) { return $test;

« previous php.pear.cvs (#60255) next »