for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Bpost\BpostApiClient\Common;
interface IAttribute
{
/**
* @param \DOMDocument $document
* @param string $prefix
$prefix
string|null
This check looks for @param annotations where the type inferred by our type inference engine differs from the declared type.
@param
It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.
* @param string $type
$type
* @return \DOMElement
*/
function toXml(\DOMDocument $document, $prefix = null, $type = null);
* @param \SimpleXMLElement $xml
* @return IAttribute
static function createFromXml(\SimpleXMLElement $xml);
}
This check looks for
@param
annotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.