Bug 30941: (QA follow-up) Import methods explicitly
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 19 Aug 2022 12:06:57 +0000 (09:06 -0300)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 19 Aug 2022 12:49:36 +0000 (09:49 -0300)
commit038a66f113ebb06277744f6770bf5fd4c1380622
tree108241dcd6fd81b7c27a2b5e38ce80132353ef71
parent42b4778bd0fee3c8b054c6cbed93bcdd68d0c99a
Bug 30941: (QA follow-up) Import methods explicitly

By explicitly importing the Koha::I18N methods, I get rid of this error:

kohadev-koha@kohadevbox:/kohadevbox/koha$ qa -c 2 --run-tests
testing 2 commit(s) (applied to 9b2bf04 '09 Bug 30507: Value builder for field')

Processing files before patches
|========================>| 12 / 12 (100.00%)

An error occurred : Inconsistent hierarchy during C3 merge of class 'Koha::I18N':
current merge results [
Koha::I18N,
]
merging failed on 'Exporter' at /kohadevbox/qa-test-tools/koha-qa.pl line 112.

This happens because the Koha::I18N library is exporting all its methods
explicitly and, by design, the __ methods used in value builders cannot
determine which of the imported methods to use i.e. if Koha::I118N::__
or Koha::CodeList::Unimarc::MediumOfPerformance:__

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/CodeList/Unimarc/MediumOfPerformance.pm