for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace BestServedCold\PhalueObjects\VOArray;
use BestServedCold\PhalueObjects\Variadic;
use BestServedCold\PhalueObjects\VOArray;
use BestServedCold\PhalueObjects\VOClosure;
/**
* Class Map
*
* @package BestServedCold\PhalueObjects\VOArray
*/
class Map extends VOArray
{
* Map constructor.
* @param \Closure $value
* @param \array[] ...$array
$array
\array[][]
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.
public function __construct(\Closure $value, array ...$array)
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
parent::__construct(call_user_func_array('array_map', func_get_args()));
}
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.