Skip to content
Snippets Groups Projects
Commit 0dee11e6 authored by Demian Katz's avatar Demian Katz Committed by Robert Lange
Browse files

Improve PHP 7.3 compatibility (#1315)

- Add PHP 7.3 to Travis configuration.
- Use more explicit typing in SpellingProcessor to avoid PHP 7.3 notice.
parent 11261bfd
No related merge requests found
......@@ -4,6 +4,7 @@ php:
- 7.0
- 7.1
- 7.2
- 7.3
env:
- VUFIND_HOME=$PWD VUFIND_LOCAL_DIR=$PWD/local
......
......@@ -252,7 +252,7 @@ class SpellingProcessor
foreach ($this->tokenize($query) as $token) {
// TODO - Do we need stricter matching here, similar to that in
// \VuFindSearch\Query\Query::replaceTerm()?
if (stripos($token, $term) !== false) {
if (stripos($token, (string)$term) !== false) {
$inToken = true;
// We need to replace the whole token
$targetTerm = $token;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment