Skip to content

Commit

Permalink
Merge pull request #548 from elifesciences/fix-issues-with-dynamic-pr…
Browse files Browse the repository at this point in the history
…operties

Fix issues with dynamic properties
  • Loading branch information
scottaubrey authored Nov 8, 2024
2 parents bf024fd + 4bcac50 commit 488c33f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 3 additions & 1 deletion src/Search/Api/Elasticsearch/PlainElasticsearchClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@

class PlainElasticsearchClient
{
private $libraryClient;
private Client $libraryClient;

private string $index;

public function __construct(Client $libraryClient, string $index)
{
Expand Down
2 changes: 2 additions & 0 deletions tests/src/Search/IndexMetadataTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

class IndexMetadataTest extends TestCase
{
private IndexMetadata $sample;

public function setUp(): void
{
$this->sample = IndexMetadata::fromContents('search_2', 'search_1');
Expand Down
8 changes: 4 additions & 4 deletions tests/src/Search/Web/ElasticTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
use eLife\Search\Kernel;
use eLife\Search\KeyValueStore\ElasticSearchKeyValueStore;
use Psr\Log\NullLogger;
use RuntimeException;
use Symfony\Component\BrowserKit\Client;
use Symfony\Component\Console\Application;
use Symfony\Component\Console\Input\StringInput;
use Symfony\Component\Console\Output\StreamOutput;
Expand All @@ -20,8 +18,10 @@
abstract class ElasticTestCase extends WebTestCase
{
protected $console;
/** @var MappedElasticsearchClient */
protected $client;

protected MappedElasticsearchClient $mappedClient;

protected PlainElasticsearchClient $plainClient;

public function getCollectionFixture(int $num)
{
Expand Down

0 comments on commit 488c33f

Please sign in to comment.