diff --git a/composer.lock b/composer.lock index 0d04a4b0b..40bb9c8db 100644 --- a/composer.lock +++ b/composer.lock @@ -553,27 +553,27 @@ }, { "name": "teamtnt/tntsearch", - "version": "v5.0.0", + "version": "v5.0.2", "source": { "type": "git", "url": "https://github.com/teamtnt/tntsearch.git", - "reference": "3f6078c37d55feab3927d8f988f9e1e8b3aaa2a0" + "reference": "7ee319d9d96a043164571eab87db72071014d66b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/teamtnt/tntsearch/zipball/3f6078c37d55feab3927d8f988f9e1e8b3aaa2a0", - "reference": "3f6078c37d55feab3927d8f988f9e1e8b3aaa2a0", + "url": "https://api.github.com/repos/teamtnt/tntsearch/zipball/7ee319d9d96a043164571eab87db72071014d66b", + "reference": "7ee319d9d96a043164571eab87db72071014d66b", "shasum": "" }, "require": { "ext-mbstring": "*", "ext-pdo": "*", - "php": "~7.1|^8", + "php": "~7.4 || ^8", "predis/predis": "^2.2" }, "require-dev": { - "phpunit/phpunit": "7.*|8.*|9.*", - "symfony/var-dumper": "^4|^5.2" + "phpunit/phpunit": "7.* || 8.* || 9.*", + "symfony/var-dumper": "^4 || ^5.2" }, "type": "library", "autoload": { @@ -611,7 +611,7 @@ ], "support": { "issues": "https://github.com/teamtnt/tntsearch/issues", - "source": "https://github.com/teamtnt/tntsearch/tree/v5.0.0" + "source": "https://github.com/teamtnt/tntsearch/tree/v5.0.2" }, "funding": [ { @@ -619,7 +619,7 @@ "type": "github" } ], - "time": "2025-04-15T20:07:13+00:00" + "time": "2025-08-25T14:33:45+00:00" } ], "packages-dev": [ diff --git a/lib/Search/FileSearch/FileIndexer.php b/lib/Search/FileSearch/FileIndexer.php index b54c25f65..138321bd1 100644 --- a/lib/Search/FileSearch/FileIndexer.php +++ b/lib/Search/FileSearch/FileIndexer.php @@ -17,7 +17,7 @@ use OCP\Files\NotPermittedException; use OCP\Lock\LockedException; use PDO; -use TeamTNT\TNTSearch\Contracts\EngineContract; +use TeamTNT\TNTSearch\Engines\EngineInterface; use TeamTNT\TNTSearch\Indexer\TNTIndexer; use TeamTNT\TNTSearch\Support\Collection; @@ -25,7 +25,7 @@ * @property PDO|null $index */ class FileIndexer extends TNTIndexer { - public function __construct(EngineContract $engine) { + public function __construct(EngineInterface $engine) { parent::__construct($engine); $this->disableOutput(true); } diff --git a/lib/Search/FileSearch/FileSearcher.php b/lib/Search/FileSearch/FileSearcher.php index 1111b2a9d..464c0036d 100644 --- a/lib/Search/FileSearch/FileSearcher.php +++ b/lib/Search/FileSearch/FileSearcher.php @@ -12,7 +12,7 @@ use OCP\Files\File; use OCP\Files\NotFoundException; use PDO; -use TeamTNT\TNTSearch\Support\TokenizerInterface; +use TeamTNT\TNTSearch\Tokenizer\TokenizerInterface; use TeamTNT\TNTSearch\TNTSearch; /** diff --git a/lib/Search/FileSearch/WordTokenizer.php b/lib/Search/FileSearch/WordTokenizer.php index 81f462c09..ae2247208 100644 --- a/lib/Search/FileSearch/WordTokenizer.php +++ b/lib/Search/FileSearch/WordTokenizer.php @@ -9,7 +9,7 @@ namespace OCA\Collectives\Search\FileSearch; -use TeamTNT\TNTSearch\Support\ProductTokenizer; +use TeamTNT\TNTSearch\Tokenizer\ProductTokenizer; /** * This tokenizer is based on the ProductTokenizer but strips away non-letters and non-numbers characters.