mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-24 11:44:14 +01:00
35 lines
1.3 KiB
YAML
35 lines
1.3 KiB
YAML
services:
|
|
# yaml
|
|
Rector\YamlRector\Rector\ReplaceStringYamlRector:
|
|
# https://github.com/symfony/symfony/pull/17462
|
|
' !!php/object': ' !php/object'
|
|
|
|
# replace args
|
|
Rector\Rector\Argument\ArgumentDefaultValueReplacerRector:
|
|
# covers https://github.com/symfony/symfony/blob/3.4/UPGRADE-3.1.md#yaml
|
|
Symfony\Component\Yaml\Yaml:
|
|
parse:
|
|
1:
|
|
-
|
|
before: ['false', 'false', 'true']
|
|
after: 'Symfony\Component\Yaml\Yaml::PARSE_OBJECT_FOR_MAP'
|
|
-
|
|
before: ['false', 'true']
|
|
after: 'Symfony\Component\Yaml\Yaml::PARSE_OBJECT'
|
|
-
|
|
before: 'true'
|
|
after: 'Symfony\Component\Yaml\Yaml::PARSE_EXCEPTION_ON_INVALID_TYPE'
|
|
-
|
|
before: 'false'
|
|
after: 0
|
|
|
|
dump:
|
|
3:
|
|
-
|
|
before: ['false', 'true']
|
|
after: 'Symfony\Component\Yaml\Yaml::DUMP_OBJECT'
|
|
|
|
-
|
|
before: 'true'
|
|
after: 'Symfony\Component\Yaml\Yaml::DUMP_EXCEPTION_ON_INVALID_TYPE'
|