We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b3fa512 + 08e4f37 commit e66e4c3Copy full SHA for e66e4c3
1 file changed
src/Generator/PropertyQuery.php
@@ -8,6 +8,18 @@ class PropertyQuery
8
public static function isDeprecated(PropertyInterface $property): bool
9
{
10
$schema = $property->schema();
11
- return isset($schema["deprecated"]) && $schema["deprecated"];
+ if (isset($schema["deprecated"]) && $schema["deprecated"]) {
12
+ return true;
13
+ }
14
+
15
+ if (isset($schema["allOf"])) {
16
+ foreach ($schema["allOf"] as $subSchema) {
17
+ if (isset($subSchema["deprecated"]) && $subSchema["deprecated"]) {
18
19
20
21
22
23
+ return false;
24
}
25
0 commit comments