for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace whm\Smoke\Extensions\SmokeReporter\Reporter;
use Symfony\Component\Console\Output\OutputInterface;
use whm\Smoke\Scanner\Result;
class LiveReporter extends CliReporter
processResults
{
public function init(OutputInterface $_output)
$this->setOutputInterface($_output);
}
public function processResult(Result $result)
if ($result->isSuccess()) {
$this->renderSuccess($result);
$result
object<whm\Smoke\Scanner\Result>
object<whm\Smoke\Rules\CheckResult>
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example:
function acceptsInteger($int) { } $x = '123'; // string "123" // Instead of acceptsInteger($x); // we recommend to use acceptsInteger((integer) $x);
} else {
$this->renderFailure($result);
public function finish()