We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
AbstractAnnotation::$_context
1 parent f66289a commit ede7ae7Copy full SHA for ede7ae7
2 files changed
src/Annotations/AbstractAnnotation.php
@@ -35,7 +35,7 @@ abstract class AbstractAnnotation implements \JsonSerializable
35
*/
36
public $attachables = Generator::UNDEFINED;
37
38
- public ?Context $_context;
+ public Context $_context;
39
40
/**
41
* Annotations that couldn't be merged by mapping or postprocessing.
src/Processors/Concerns/DocblockTrait.php
@@ -29,10 +29,6 @@ trait DocblockTrait
29
30
public function isDocblockRoot(OA\AbstractAnnotation $annotation): bool
31
{
32
- if (!$annotation->_context) {
33
- return true;
34
- }
-
if (1 == count($annotation->_context->annotations)) {
return true;
}
0 commit comments