Skip to content

Commit 26af0ae

Browse files
minor #17348 [Yaml] Fix tests on PHP 7.0.2 (nicolas-grekas)
This PR was merged into the 2.3 branch. Discussion ---------- [Yaml] Fix tests on PHP 7.0.2 | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #1234 | License | MIT | Doc PR | - Related to https://bugs.php.net/66179 that has been fixed in 7.0.2 Commits ------- 902f6dd [Yaml] Fix tests on PHP 7.0.2
2 parents 7a02f4e + 902f6dd commit 26af0ae

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Symfony/Component/Yaml/Tests/Fixtures/YtsSpecificationExamples.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ yaml: |
515515
php: |
516516
array(
517517
'canonical' => 12345,
518-
'decimal' => 12345,
518+
'decimal' => 12345.0,
519519
'octal' => 014,
520520
'hexadecimal' => 0xC
521521
)
@@ -1536,7 +1536,7 @@ yaml: |
15361536
php: |
15371537
array(
15381538
'canonical' => 12345,
1539-
'decimal' => 12345,
1539+
'decimal' => 12345.0,
15401540
'octal' => 12,
15411541
'hexadecimal' => 12
15421542
)

src/Symfony/Component/Yaml/Tests/Fixtures/YtsTypeTransfers.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,8 @@ php: |
182182
array(
183183
'zero' => 0,
184184
'simple' => 12,
185-
'one-thousand' => 1000,
186-
'negative one-thousand' => -1000
185+
'one-thousand' => 1000.0,
186+
'negative one-thousand' => -1000.0
187187
)
188188
---
189189
test: Integers as Map Keys

0 commit comments

Comments
 (0)