for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Schnittstabil\Dartisan\Commands;
use Garden\Cli\Args;
use Schnittstabil\Dartisan\Contracts\Output;
abstract class Command
{
/**
* @var Args
*/
protected $args;
* @var callable
protected $output;
public function __construct(Args $args, Output $output)
$this->args = $args;
$this->output = $output;
$output
object<Schnittstabil\Dartisan\Contracts\Output>
callable
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..
}
abstract protected function run();
public function __invoke()
try {
return $this->run();
} catch (\Exception $e) {
$this->output->error($e);
error
$this->output
Methods can only be called on objects. This check looks for methods being called on variables that have been inferred to never be objects.
return 2;
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..