From 902f6ddb93732fe83378ef36e6d3f4ab8f17ceda Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Wed, 13 Jan 2016 09:54:41 +0100 Subject: [PATCH] [Yaml] Fix tests on PHP 7.0.2 --- .../Yaml/Tests/Fixtures/YtsSpecificationExamples.yml | 4 ++-- .../Component/Yaml/Tests/Fixtures/YtsTypeTransfers.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Symfony/Component/Yaml/Tests/Fixtures/YtsSpecificationExamples.yml b/src/Symfony/Component/Yaml/Tests/Fixtures/YtsSpecificationExamples.yml index f8f002eb41..a06df7fb31 100644 --- a/src/Symfony/Component/Yaml/Tests/Fixtures/YtsSpecificationExamples.yml +++ b/src/Symfony/Component/Yaml/Tests/Fixtures/YtsSpecificationExamples.yml @@ -515,7 +515,7 @@ yaml: | php: | array( 'canonical' => 12345, - 'decimal' => 12345, + 'decimal' => 12345.0, 'octal' => 014, 'hexadecimal' => 0xC ) @@ -1536,7 +1536,7 @@ yaml: | php: | array( 'canonical' => 12345, - 'decimal' => 12345, + 'decimal' => 12345.0, 'octal' => 12, 'hexadecimal' => 12 ) diff --git a/src/Symfony/Component/Yaml/Tests/Fixtures/YtsTypeTransfers.yml b/src/Symfony/Component/Yaml/Tests/Fixtures/YtsTypeTransfers.yml index aac4e68077..46c8d4a2c0 100644 --- a/src/Symfony/Component/Yaml/Tests/Fixtures/YtsTypeTransfers.yml +++ b/src/Symfony/Component/Yaml/Tests/Fixtures/YtsTypeTransfers.yml @@ -182,8 +182,8 @@ php: | array( 'zero' => 0, 'simple' => 12, - 'one-thousand' => 1000, - 'negative one-thousand' => -1000 + 'one-thousand' => 1000.0, + 'negative one-thousand' => -1000.0 ) --- test: Integers as Map Keys