for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace BestServedCold\PhalueObjects\VOArray\Map;
use BestServedCold\PhalueObjects\VOArray;
use BestServedCold\PhalueObjects\VOClosure\KeyValue;
use BestServedCold\PhalueObjects\VOArray\Map;
/**
* Class Attribute
*
* @package BestServedCold\PhalueObjects\VOArray\KeyValue
*/
class Attribute extends VOArray
{
* @param array $array
* @return VOArray
Attribute
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 static function fromArray(array $array)
return parent::fromArray(
Map::fromVariadic(
KeyValue::fromVars(null, '="', '"'),
array_keys($array),
$array
)->getValue()
);
}
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.