diff --git a/src/Generator/PropertyQuery.php b/src/Generator/PropertyQuery.php index ca30f210..2628c324 100644 --- a/src/Generator/PropertyQuery.php +++ b/src/Generator/PropertyQuery.php @@ -8,6 +8,18 @@ class PropertyQuery public static function isDeprecated(PropertyInterface $property): bool { $schema = $property->schema(); - return isset($schema["deprecated"]) && $schema["deprecated"]; + if (isset($schema["deprecated"]) && $schema["deprecated"]) { + return true; + } + + if (isset($schema["allOf"])) { + foreach ($schema["allOf"] as $subSchema) { + if (isset($subSchema["deprecated"]) && $subSchema["deprecated"]) { + return true; + } + } + } + + return false; } } \ No newline at end of file