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\ClassBased;
use Roave\BackwardCompatibility\Change;
use Roave\BackwardCompatibility\Changes;
use Roave\BetterReflection\Reflection\ReflectionClass;
use Throwable;
final class SkipClassBasedErrors implements ClassBased
{
/** @var ClassBased */
private $next;
public function __construct(ClassBased $next)
$this->next = $next;
}
public function __invoke(ReflectionClass $fromClass, ReflectionClass $toClass) : Changes
try {
return $this->next->__invoke($fromClass, $toClass);
} catch (Throwable $failure) {
return Changes::fromList(Change::skippedDueToFailure($failure));