Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 11 additions & 13 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
"psr/http-client-implementation": "1.0",
"psr/http-factory": "^1.0",
"psr/log": "^3.0",
"symfony/framework-bundle": "^6.4|^7.0 || 8.0.3",
"symfony/http-client": "^6.4.18|^7.2 || 8.0.3",
"symfony/http-kernel": "^6.4|^7.2 || 8.0.3",
"symfony/property-access": "^6.4|^7.2 || 8.0.3",
"symfony/framework-bundle": "^7.2 || ^8.0",
"symfony/http-client": "^7.2 || ^8.0",
"symfony/http-kernel": "^7.2 || ^8.0",
"symfony/property-access": "^7.2 || ^8.0",
"symfony/service-contracts": "^3.5",
"symfony/var-exporter": "^6.4|^7.2 || 8.0.0",
"symfony/var-exporter": "^7.2 || ^8.0",
"typesense/typesense-php": "^4.9|^5.0"
},
"require-dev": {
Expand All @@ -29,15 +29,14 @@
"phpstan/phpstan-symfony": "^2.0",
"phpunit/phpunit": "^11.5|^12.0",
"rector/rector": "^2.0.8",
"symfony/console": "^6.4|^7.2 || 8.0.3",
"symfony/dotenv": "^6.4|^7.2 || 8.0.0",
"symfony/phpunit-bridge": "^7.0 || ^8.0",
"symfony/runtime": "^6.4|^7.2 || 8.0.1",
"symfony/yaml": "^6.4|^7.0 || 8.0.1"
"symfony/console": "^7.2 || ^8.0",
"symfony/dotenv": "^7.2 || ^8.0",
"symfony/phpunit-bridge": "^7.2 || ^8.0",
"symfony/runtime": "^7.2 || ^8.0",
"symfony/yaml": "^7.2 || ^8.0"
},
"conflict": {
"php-http/httplug": "<1.5",
"symfony/var-exporter": ">=8"
"php-http/httplug": "<1.5"
},
"config": {
"sort-packages": true,
Expand All @@ -61,7 +60,6 @@
"auto-scripts": {
"cache:clear": "symfony-cmd"
},

"phpstan": [
"Composer\\Config::disableProcessTimeout",
"./vendor/bin/phpstan analyse --memory-limit=-1"
Expand Down
2 changes: 2 additions & 0 deletions src/Client/ClientInterface.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Biblioverse\TypesenseBundle\Client;

use Typesense\Aliases;
Expand Down
2 changes: 2 additions & 0 deletions src/CollectionAlias/AliasException.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Biblioverse\TypesenseBundle\CollectionAlias;

use Biblioverse\TypesenseBundle\Exception\SearchException;
Expand Down
2 changes: 2 additions & 0 deletions src/CollectionAlias/CollectionAliasInterface.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Biblioverse\TypesenseBundle\CollectionAlias;

interface CollectionAliasInterface
Expand Down
2 changes: 2 additions & 0 deletions src/Exception/SearchException.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Biblioverse\TypesenseBundle\Exception;

class SearchException extends \RuntimeException
Expand Down
2 changes: 2 additions & 0 deletions src/Indexer/IndexerInterface.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Biblioverse\TypesenseBundle\Indexer;

interface IndexerInterface
Expand Down
2 changes: 2 additions & 0 deletions src/Mapper/CollectionManagerInterface.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Biblioverse\TypesenseBundle\Mapper;

/**
Expand Down
2 changes: 2 additions & 0 deletions src/Mapper/Converter/Exception/ValueExtractorException.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Biblioverse\TypesenseBundle\Mapper\Converter\Exception;

class ValueExtractorException extends \Exception
Expand Down
2 changes: 2 additions & 0 deletions src/Mapper/Converter/Field/FieldConverterInterface.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Biblioverse\TypesenseBundle\Mapper\Converter\Field;

use Biblioverse\TypesenseBundle\Mapper\Converter\Exception\ValueConversionException;
Expand Down
2 changes: 2 additions & 0 deletions src/Mapper/Converter/ToTypesenseInterface.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Biblioverse\TypesenseBundle\Mapper\Converter;

interface ToTypesenseInterface
Expand Down
2 changes: 2 additions & 0 deletions src/Mapper/Converter/ValueConverterInterface.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Biblioverse\TypesenseBundle\Mapper\Converter;

use Biblioverse\TypesenseBundle\Mapper\Converter\Exception\ValueConversionException;
Expand Down
2 changes: 2 additions & 0 deletions src/Mapper/Converter/ValueExtractor.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Biblioverse\TypesenseBundle\Mapper\Converter;

use Biblioverse\TypesenseBundle\Mapper\Converter\Exception\ValueExtractorException;
Expand Down
2 changes: 2 additions & 0 deletions src/Mapper/Converter/ValueExtractorInterface.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Biblioverse\TypesenseBundle\Mapper\Converter;

use Biblioverse\TypesenseBundle\Mapper\Converter\Exception\ValueExtractorException;
Expand Down
2 changes: 2 additions & 0 deletions src/Mapper/DataGeneratorInterface.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Biblioverse\TypesenseBundle\Mapper;

use Biblioverse\TypesenseBundle\Mapper\Converter\Exception\ValueConversionException;
Expand Down
2 changes: 2 additions & 0 deletions src/Mapper/Entity/EntityCollectionManagerInterface.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Biblioverse\TypesenseBundle\Mapper\Entity;

use Biblioverse\TypesenseBundle\Mapper\CollectionManagerInterface;
Expand Down
2 changes: 2 additions & 0 deletions src/Mapper/Entity/EntityTransformerInterface.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Biblioverse\TypesenseBundle\Mapper\Entity;

use Biblioverse\TypesenseBundle\Mapper\Converter\Exception\ValueConversionException;
Expand Down
2 changes: 2 additions & 0 deletions src/Mapper/Entity/Identifier/EntityIdentifier.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Biblioverse\TypesenseBundle\Mapper\Entity\Identifier;

use Doctrine\ORM\EntityManagerInterface;
Expand Down
2 changes: 2 additions & 0 deletions src/Mapper/Entity/Identifier/EntityIdentifierInterface.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Biblioverse\TypesenseBundle\Mapper\Entity\Identifier;

interface EntityIdentifierInterface
Expand Down
2 changes: 2 additions & 0 deletions src/Mapper/Fields/FieldMappingInterface.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Biblioverse\TypesenseBundle\Mapper\Fields;

use Biblioverse\TypesenseBundle\Mapper\Converter\Field\FieldConverterInterface;
Expand Down
2 changes: 2 additions & 0 deletions src/Mapper/Locator/InvalidTypeMapperException.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Biblioverse\TypesenseBundle\Mapper\Locator;

class InvalidTypeMapperException extends \InvalidArgumentException
Expand Down
2 changes: 2 additions & 0 deletions src/Mapper/Locator/MapperLocatorInterface.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Biblioverse\TypesenseBundle\Mapper\Locator;

use Biblioverse\TypesenseBundle\Mapper\CollectionManagerInterface;
Expand Down
2 changes: 2 additions & 0 deletions src/Mapper/Mapping/MappingInterface.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Biblioverse\TypesenseBundle\Mapper\Mapping;

use Biblioverse\TypesenseBundle\Mapper\Fields\FieldMappingInterface;
Expand Down
2 changes: 2 additions & 0 deletions src/Mapper/MappingGeneratorInterface.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Biblioverse\TypesenseBundle\Mapper;

use Biblioverse\TypesenseBundle\Mapper\Mapping\MappingInterface;
Expand Down
2 changes: 2 additions & 0 deletions src/Mapper/Metadata/MetadataMapping.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Biblioverse\TypesenseBundle\Mapper\Metadata;

use Biblioverse\TypesenseBundle\Utils\ArrayAccessTrait;
Expand Down
2 changes: 2 additions & 0 deletions src/Mapper/Metadata/MetadataMappingInterface.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Biblioverse\TypesenseBundle\Mapper\Metadata;

interface MetadataMappingInterface
Expand Down
2 changes: 2 additions & 0 deletions src/Mapper/Options/CollectionOptionsInterface.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Biblioverse\TypesenseBundle\Mapper\Options;

interface CollectionOptionsInterface
Expand Down
2 changes: 2 additions & 0 deletions src/Mapper/StandaloneCollectionManagerInterface.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Biblioverse\TypesenseBundle\Mapper;

/**
Expand Down
2 changes: 2 additions & 0 deletions src/Populate/BatchGenerator.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Biblioverse\TypesenseBundle\Populate;

/**
Expand Down
2 changes: 2 additions & 0 deletions src/Populate/WaitFor/WaitForDatabaseService.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Biblioverse\TypesenseBundle\Populate\WaitFor;

use Doctrine\ORM\EntityManagerInterface;
Expand Down
2 changes: 2 additions & 0 deletions src/Populate/WaitFor/WaitForInterface.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Biblioverse\TypesenseBundle\Populate\WaitFor;

use Symfony\Component\DependencyInjection\Attribute\AutoconfigureTag;
Expand Down
2 changes: 2 additions & 0 deletions src/Populate/WaitFor/WaitForTypesenseService.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Biblioverse\TypesenseBundle\Populate\WaitFor;

use Biblioverse\TypesenseBundle\Client\ClientInterface;
Expand Down
2 changes: 1 addition & 1 deletion src/Query/SearchQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ private function convertArray(mixed $values, callable $convert, ?string $classNa
}
}

return $values === [] ? null : implode(',', array_map($convert, $values));
return $values === [] ? null : implode(',', array_map($convert, $values)); // @phpstan-ignore argument.type
}

public function toArray(): array
Expand Down
2 changes: 2 additions & 0 deletions src/Query/SearchQueryInterface.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Biblioverse\TypesenseBundle\Query;

interface SearchQueryInterface
Expand Down
2 changes: 2 additions & 0 deletions src/Query/VectorQuery.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Biblioverse\TypesenseBundle\Query;

class VectorQuery implements VectorQueryInterface
Expand Down
2 changes: 2 additions & 0 deletions src/Query/VectorQueryInterface.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Biblioverse\TypesenseBundle\Query;

interface VectorQueryInterface extends \Stringable
Expand Down
2 changes: 2 additions & 0 deletions src/Query/VoiceQueryInterface.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Biblioverse\TypesenseBundle\Query;

interface VoiceQueryInterface extends \Stringable
Expand Down
2 changes: 2 additions & 0 deletions src/Search/Hydrate/HydrateRepositoryInterface.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Biblioverse\TypesenseBundle\Search\Hydrate;

use Doctrine\Common\Collections\Collection;
Expand Down
2 changes: 2 additions & 0 deletions src/Search/Hydrate/HydrateSearchResultInterface.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Biblioverse\TypesenseBundle\Search\Hydrate;

use Biblioverse\TypesenseBundle\Search\Results\SearchResults;
Expand Down
2 changes: 2 additions & 0 deletions src/Search/SearchCollectionInterface.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Biblioverse\TypesenseBundle\Search;

use Biblioverse\TypesenseBundle\Exception\SearchException;
Expand Down
2 changes: 2 additions & 0 deletions src/Search/SearchInterface.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Biblioverse\TypesenseBundle\Search;

use Biblioverse\TypesenseBundle\Exception\SearchException;
Expand Down
2 changes: 2 additions & 0 deletions src/Type/DataTypeEnum.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Biblioverse\TypesenseBundle\Type;

enum DataTypeEnum: string
Expand Down
2 changes: 2 additions & 0 deletions src/Type/FacetStrategyEnum.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Biblioverse\TypesenseBundle\Type;

enum FacetStrategyEnum: string
Expand Down
2 changes: 2 additions & 0 deletions src/Type/InfixEnum.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Biblioverse\TypesenseBundle\Type;

enum InfixEnum: string
Expand Down
2 changes: 2 additions & 0 deletions tests/Client/ServiceWithClient.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Biblioverse\TypesenseBundle\Tests\Client;

use Biblioverse\TypesenseBundle\Client\ClientInterface;
Expand Down
Loading
Loading