Re: Having trouble with php8 bindings
John Handelaar <[email protected]> Thu, 30 Mar 2023 05:16:16 +0100
| Newsgroups | gmane.comp.search.xapian.general |
|---|---|
| Message-ID | <CAAvjpTxe8OZva5CnCqRog9HgVUXHp94jwJ8z--bbXqMGGQU7pQ@mail.gmail.com> |
On Thu, 30 Mar 2023 at 04:58, Olly Betts <[email protected]> wrote: > > Another option is to import the things you want with `use` and then > you can just use `XapianWritableDatabase` without to prefix it with > `\`. To do that add this after your `namespace literallyanynamespace;` > line: > > use \XapianWritableDatabase; Thank you very much. This then (because of course) led to some more things needing tidying up and I've run into something I can't work out while trying to update previously-worked-in-php7 code in the actual file I'm trying to update $this->queryparser->set_default_op(Query_OP_AND); ...leads to "Undefined constant "App\Helpers\Query_OP_AND" because... another namespace issue? ("OP_AND" and "XapianQueryParser::OP_AND" are also not accepted.) jh