Skip to content

Commit e8db7ed

Browse files
authored
Make StateProcessor.tpl.php compatible with 3.4
API Platform 3.4+ needs to return the processor
1 parent 17c916c commit e8db7ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Maker/Resources/skeleton/StateProcessor.tpl.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
class <?php echo $class_name; ?> implements ProcessorInterface
1010
{
11-
public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = []): void
11+
public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = []): mixed
1212
{
13-
// Handle the state
13+
// Handle the state and return the inner processor
1414
}
1515
}

0 commit comments

Comments
 (0)