for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
namespace Star\Component\State\Callbacks;
use Star\Component\State\InvalidStateTransitionException;
use Star\Component\State\StateMachine;
final class AlwaysThrowExceptionOnFailure implements TransitionCallback
{
/**
* @param mixed $context
* @param StateMachine $machine
*/
public function beforeStateChange($context, StateMachine $machine): void
}
public function afterStateChange($context, StateMachine $machine): void
* @param InvalidStateTransitionException $exception
*
* @return string
* @throws InvalidStateTransitionException
public function onFailure(InvalidStateTransitionException $exception, $context, StateMachine $machine): string
throw $exception;
This check marks files that end in a newline character, i.e. an empy line.