WebPHPDocs Basics. PHPDocs are a big part of what makes PHPStan work. PHP in its most recent versions can express a lot of things in the native typehints, but it still leaves a lot of room for PHPDocs to augment the information. Valid PHPDocs start with /**. Variants starting only with /* or line comments // are not considered PHPDocs.