Advertisement
stronk7

Untitled

Sep 30th, 2021
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. <?php
  2. /**
  3. * Some idiot tests
  4. *
  5. * @package core
  6. * @copyright 1999
  7. * @license olives
  8. */
  9. /**
  10. * Do a test
  11. *
  12. * @param int ...$params
  13. */
  14. function testok(...$params) {
  15. //
  16. }
  17.  
  18. /**
  19. * Do another test
  20. *
  21. * @param int ... $params
  22. */
  23. function testbad(...$params) {
  24. //
  25. }
  26.  
  27. /**
  28. * Do one more test
  29. *
  30. * @param ... $params
  31. */
  32. function testbad2(...$params) {
  33. //
  34. }
  35.  
  36. $ php local/moodlecheck/cli/moodlecheck.php -p=test.php
  37. <file name="test.php">
  38. <error line="21" severity="error" message="Phpdocs for function testbad has incomplete parameters list" source="functionarguments" />
  39. <error line="30" severity="error" message="Phpdocs for function testbad2 has incomplete parameters list" source="functionarguments" />
  40. </file>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement