diff --git a/docker-compose.yml b/docker-compose.yml index 6740993..914efb0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -18,5 +18,4 @@ services: node: image: node:12 volumes: -# - ./tests/tmp/.composer:/root/.composer:rw - .:/app diff --git a/src/SpecBaseObject.php b/src/SpecBaseObject.php index aa3367a..1de429b 100644 --- a/src/SpecBaseObject.php +++ b/src/SpecBaseObject.php @@ -318,6 +318,7 @@ protected function hasProperty(string $name): bool /** * @param string $name property name. * @return bool true, when a property has a non-null value (does not check for default values) + * @since 1.6.0 */ protected function hasPropertyValue(string $name): bool { @@ -511,7 +512,7 @@ public function getDocumentPosition(): ?JsonPointer * Returns extension properties with `x-` prefix. * @see https://github.com/OAI/OpenAPI-Specification/blob/3.0.2/versions/3.0.2.md#specificationExtensions * @return array - * @since 1.5.3 + * @since 1.6.0 */ public function getExtensions(): array { diff --git a/tests/ReaderTest.php b/tests/ReaderTest.php index 435a8e0..589b7cb 100644 --- a/tests/ReaderTest.php +++ b/tests/ReaderTest.php @@ -89,6 +89,9 @@ private function assertApiContent(\cebe\openapi\spec\OpenApi $openapi) $this->assertEquals("1.0.0", $openapi->info->version); } + /** + * @see https://github.com/symfony/symfony/issues/34805 + */ public function testSymfonyYamlBugHunt() { $openApiFile = __DIR__ . '/../vendor/oai/openapi-specification/examples/v3.0/uspto.yaml';