for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace TRex\Collection;
trait CollectionKeyAccessorTrait
{
/**
* @param mixed $value
* @param bool $isStrict
* @return array
array<integer|string>
This check looks for the generic type array as a return type and suggests a more specific type. This type is inferred from the actual code.
array
*/
public function search($value, $isStrict = true)
return array_keys((array)$this, $value, $isStrict);
}
public function keys()
return array_keys((array)$this);
This check looks for the generic type
array
as a return type and suggests a more specific type. This type is inferred from the actual code.