Skip to content

Commit 10e8d87

Browse files
authored
Merge pull request #71 from deguif/fix-deprecations
Fix deprecations
2 parents 63a3269 + e38b88a commit 10e8d87

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

Callback/ContainerAwareCallback.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ public function __construct(array $specs, $callable, ContainerInterface $contain
3131

3232
/**
3333
* {@inheritDoc}
34+
*
35+
* @return mixed
3436
*/
3537
public function call(TransitionEvent $event)
3638
{

Command/winzouStateMachineDebugCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function __construct(array $config)
2929
/**
3030
* {@inheritdoc}
3131
*/
32-
public function configure()
32+
public function configure(): void
3333
{
3434
$this
3535
->setDescription('Shows information about state machine states, transitions and callbacks.')
@@ -40,7 +40,7 @@ public function configure()
4040
/**
4141
* {@inheritdoc}
4242
*/
43-
protected function initialize(InputInterface $input, OutputInterface $output)
43+
protected function initialize(InputInterface $input, OutputInterface $output): void
4444
{
4545
if (empty($this->config)) {
4646
throw new \RuntimeException('There is no state machine configured.');
@@ -50,7 +50,7 @@ protected function initialize(InputInterface $input, OutputInterface $output)
5050
/**
5151
* {@inheritdoc}
5252
*/
53-
protected function interact(InputInterface $input, OutputInterface $output)
53+
protected function interact(InputInterface $input, OutputInterface $output): void
5454
{
5555
if (null !== $input->getArgument('key')) {
5656
return;

DependencyInjection/winzouStateMachineExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class winzouStateMachineExtension extends Extension
2323
/**
2424
* {@inheritDoc}
2525
*/
26-
public function load(array $configs, ContainerBuilder $container)
26+
public function load(array $configs, ContainerBuilder $container): void
2727
{
2828
$configuration = new Configuration();
2929
$config = $this->processConfiguration($configuration, $configs);

0 commit comments

Comments
 (0)