Skip to content

Instantly share code, notes, and snippets.

@greg0ire
Created January 10, 2017 19:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save greg0ire/c0cca825eee0ccfdcc9ee9e065241b55 to your computer and use it in GitHub Desktop.
Save greg0ire/c0cca825eee0ccfdcc9ee9e065241b55 to your computer and use it in GitHub Desktop.
php doc : towards a minimum?
<?php
/**
* @param A $a useful comment
* @param B $b useless comment
* @param C|null $c useful comment
*/
function muchDocumented(A $a, B $b, C $c = null)
{
}
/**
* @param $a useful comment
* @param $b useless comment
* @param $c useful comment
*/
function lessDocumented(A $a, B $b, C $c = null)
{
}
/**
* @param $a useful comment
* @param $c useful comment
*/
function evenLessDocumented(A $a, B $b, C $c = null)
{
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment