Skip to content

Commit

Permalink
Enforce context in a few places
Browse files Browse the repository at this point in the history
  • Loading branch information
DerManoMann committed Nov 14, 2021
1 parent 7925bb3 commit 0defe59
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Analysis.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function __construct(array $annotations = [], Context $context = null)
$this->addAnnotations($annotations, $context);
}

public function addAnnotation($annotation, ?Context $context): void
public function addAnnotation($annotation, Context $context): void
{
if ($this->annotations->contains($annotation)) {
return;
Expand Down Expand Up @@ -110,7 +110,7 @@ public function addAnnotation($annotation, ?Context $context): void
}
}

public function addAnnotations(array $annotations, ?Context $context): void
public function addAnnotations(array $annotations, Context $context): void
{
foreach ($annotations as $annotation) {
$this->addAnnotation($annotation, $context);
Expand Down
2 changes: 1 addition & 1 deletion src/Processors/MergeTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
*/
trait MergeTrait
{
protected function inheritFrom(Schema $schema, Schema $from, string $refPath, ?Context $context): void
protected function inheritFrom(Schema $schema, Schema $from, string $refPath, Context $context): void
{
if ($schema->allOf === Generator::UNDEFINED) {
$schema->allOf = [];
Expand Down

0 comments on commit 0defe59

Please sign in to comment.