for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Transformers;
/**
* Created by PhpStorm.
* User: pdavila
* Date: 11/01/16
* Time: 18:20
*/
abstract class Transformer {
public function transformCollection(array $items)
{
return array_map([$this, 'transform'],
$items->toArray()
toArray
$items
array
Methods can only be called on objects. This check looks for methods being called on variables that have been inferred to never be objects.
);
}
public abstract function transform($item);
Methods can only be called on objects. This check looks for methods being called on variables that have been inferred to never be objects.