Skip to content

Commit

Permalink
Reverse return null, adjust owner property to accept null and fix Ind…
Browse files Browse the repository at this point in the history
…exer::add call
  • Loading branch information
beatrycze-volk committed Sep 29, 2023
1 parent a1feec4 commit 6ab2256
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Classes/Command/BaseCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ class BaseCommand extends Command

/**
* @access protected
* @var Library
* @var Library|null
*/
protected Library $owner;
protected ?Library $owner;

/**
* @access protected
Expand Down Expand Up @@ -341,7 +341,7 @@ protected function getParentDocumentUidForSaving(Document $document): int

if ($success === true) {
// add to index
Indexer::add($parentDocument);
Indexer::add($parentDocument, $this->documentRepository);
return $parentDocument->getUid();
}
}
Expand Down
2 changes: 1 addition & 1 deletion Classes/Common/Solr/Solr.php
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ public function __get(string $var)
|| !method_exists($this, $method)
) {
$this->logger->warning('There is no getter function for property "' . $var . '"');
return null;
return;
} else {
return $this->$method();
}
Expand Down

0 comments on commit 6ab2256

Please sign in to comment.