moodlehq/moodle-local_moodlecheck — pull request #13 by samhemelryk (2013-09-02 22:08:36+00:00)
Title: Fixed bug when parsing namespaced typehint args

There is a bug with the moodlecheck functionargs check.

It doesn't nicely parse typehints that are namespaced.
For example prior to this patch the following would trigger the check to fail.

.

/**
* Test script
*
* @package core
* @copyright 2013 Sam Hemelryk
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

namespace one\two {
/**
* Class foo
* @copyright 2013 Sam Hemelryk
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class foo {}
}

namespace three {
/**
* Class bar
* @copyright 2013 Sam Hemelryk
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class bar {
/**
* This is three.
* @param \one\two\foo $foo
*/
public function __construct(\one\two\foo $foo) {}
}
}