Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Some idiot tests
- *
- * @package core
- * @copyright 1999
- * @license olives
- */
- /**
- * Do a test
- *
- * @param int ...$params
- */
- function testok(...$params) {
- //
- }
- /**
- * Do another test
- *
- * @param int ... $params
- */
- function testbad(...$params) {
- //
- }
- /**
- * Do one more test
- *
- * @param ... $params
- */
- function testbad2(...$params) {
- //
- }
- $ php local/moodlecheck/cli/moodlecheck.php -p=test.php
- <file name="test.php">
- <error line="21" severity="error" message="Phpdocs for function testbad has incomplete parameters list" source="functionarguments" />
- <error line="30" severity="error" message="Phpdocs for function testbad2 has incomplete parameters list" source="functionarguments" />
- </file>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement