for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Roave\BackwardCompatibility\DetectChanges\BCBreak\FunctionBased;
use Roave\BackwardCompatibility\Change;
use Roave\BackwardCompatibility\Changes;
use Roave\BetterReflection\Reflection\ReflectionFunctionAbstract;
use Throwable;
final class SkipFunctionBasedErrors implements FunctionBased
{
/** @var FunctionBased */
private $next;
public function __construct(FunctionBased $next)
$this->next = $next;
}
public function __invoke(ReflectionFunctionAbstract $fromFunction, ReflectionFunctionAbstract $toFunction) : Changes
try {
return $this->next->__invoke($fromFunction, $toFunction);
} catch (Throwable $failure) {
return Changes::fromList(Change::skippedDueToFailure($failure));