for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* converter for integer
*/
namespace xKerman\Restricted;
* Converter for integer
class IntegerConverter implements ConverterInterface
{
* convert given input to integer
*
* @param string $input input for converter
* @return boolean
integer
This check compares the return type specified in the @return annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.
@return
public function convert($input)
return intval($input, 10);
}
This check compares the return type specified in the
@returnannotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.