Skip to content

Commit 15936b2

Browse files
committed
fix tests, setting explicit versions for symfony that have the least amount of bugs
1 parent da8d4f5 commit 15936b2

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

.github/workflows/php.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ jobs:
1515
# os: [ubuntu-latest, macos-latest, windows-latest]
1616
os: [ubuntu-latest]
1717
php: ['7.1', '7.2', '7.3', '7.4', '8.0']
18-
yaml: ['^5.0', '^4.3', '^3.4']
18+
# max 4.4.16, see https://github.com/symfony/symfony/issues/39521
19+
yaml: ['^5.0', '4.4.16', '^3.4']
1920
exclude:
2021
# Symfony YAML does not run on PHP 7.1
2122
- php: '7.1'

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
"source": {
9292
"url": "https://github.com/Nexmo/api-specification",
9393
"type": "git",
94-
"reference": "master"
94+
"reference": "voice-2.0.0"
9595
}
9696
}
9797
}

tests/spec/ReferenceTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -433,12 +433,12 @@ public function testTransitiveReferenceOverTwoFiles()
433433
/pet:
434434
get:
435435
responses:
436-
200:
436+
'200':
437437
description: 'return a pet'
438438
/cat:
439439
get:
440440
responses:
441-
200:
441+
'200':
442442
description: 'return a cat'
443443
444444
YAML
@@ -461,7 +461,7 @@ public function testResolveRelativePathInline()
461461
/pet:
462462
get:
463463
responses:
464-
200:
464+
'200':
465465
description: 'return a pet'
466466
components:
467467
schemas:
@@ -507,7 +507,7 @@ public function testResolveRelativePathAll()
507507
/pet:
508508
get:
509509
responses:
510-
200:
510+
'200':
511511
description: 'return a pet'
512512
components:
513513
schemas:

0 commit comments

Comments
 (0)