teamtnt / tntsearch

A fully featured full text search engine written in PHP
https://tnt.studio/solving-the-search-problem-with-laravel-and-tntsearch
MIT License
3.1k stars 291 forks source link

Depreciation : Using ${var} in strings is deprecated, use {$var} instead in PHP 8.2 #281

Closed pierrealexaline closed 1 year ago

pierrealexaline commented 1 year ago

You have a little depreciation in vendor/teamtnt/tntsearch/src/Connectors/SQLiteConnector.php on line 35 (i've verified, the others connector are ok)).

Suggestion:

It's seem that you should replace :

if ($path === false) {
         throw new Exception("Database (${config['database']}) does not exist.");
}

With that when you use PHP 8.2 :

if ($path === false) {
         throw new Exception("Database ({$config['database']}) does not exist.");
}

Thanks by advance ! and many thanks for your work !

nticaric commented 1 year ago

Thanks for fixing this!