Open tacman opened 1 year ago
Actually, it's not just a simple extra colon, a lot of the information isn't converted.
Even after manually fixing the syntax (the extra colon), it's not a valid configuration response.
<?php
declare(strict_types=1);
use App\Entity\Drawing;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
return static function (ContainerConfigurator $containerConfigurator): void {
$containerConfigurator->extension('framework', [
'workflows' => [
'Drawing' => [
'type' => 'state_machine',
'audit_trail' => ['enabled' => true],
'marking_store' => ['property' => 'status'],
'supports' => Drawing::class,
'transitions' => Drawing::TRANSITION_UPLOAD,
'initial_marking' => Drawing::PLACE_NEW,
'places' => Drawing::PLACE_NEW
]]]);
};
Thanks for reporting :+1:
We'll need minimalistics failing test PR for a start :)
Yeah, I was hoping you had the --debug option like you do for ecs and rector, to make reporting easier!
Absent that, is there a template to follow?
You can copy this file and add the snippet:
Ideally just 2 lines with single broken item.
I used PHP constants in my yaml files to avoid typos in specific strings. It was a thing for a while, but never caught on, in part because of how enormously ugly it was.
Here's a yaml workflow
When I run
The resulting PHP is invalid, and has enormously long lines, which ecs can't fix because the PHP is invalid (an unwanted colon on the end of the constant)
FWIW, the class has the constants defined as expected: