Skip to content

Commit

Permalink
Keep PARSE_KEYS_AS_STRINGS reference
Browse files Browse the repository at this point in the history
  • Loading branch information
janedbal committed Apr 3, 2024
1 parent 24b8f17 commit 49bdd12
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ function argumentRemover()
{
$yaml = [];

Yaml::parse($yaml, Yaml::REMOVED_CONSTANT);
Yaml::parse($yaml, Symfony\Component\Yaml\Yaml::PARSE_KEYS_AS_STRINGS);

Yaml::parse($yaml, Yaml::REMOVED_CONSTANT);
Yaml::parse($yaml, Symfony\Component\Yaml\Yaml::PARSE_KEYS_AS_STRINGS);

Yaml::parse($yaml, Yaml::KEPT_CONSTANT);

Yaml::parse($yaml, Yaml::REMOVED_CONSTANT);
Yaml::parse($yaml, Symfony\Component\Yaml\Yaml::PARSE_KEYS_AS_STRINGS);

Yaml::parse($yaml, 55);
Yaml::parse($yaml, 56);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

class Yaml
{
public const REMOVED_CONSTANT = 1;
public const KEPT_CONSTANT = 2;

public static function parse($input, $flags) {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
Yaml::class,
'parse',
1,
[Yaml::REMOVED_CONSTANT, 'hey', 55, 5.5]
['Symfony\Component\Yaml\Yaml::PARSE_KEYS_AS_STRINGS', 'hey', 55, 5.5]
),
new ArgumentRemover(RemoveInTheMiddle::class, 'run', 1, [
'name' => 'second',
Expand Down

0 comments on commit 49bdd12

Please sign in to comment.