smohring / cearch-pro-bundle

Contao CearchPro for Contao 4
Other
6 stars 3 forks source link

Contao 4.9 PHP7.4 compability #8

Open Ainschy opened 3 years ago

Ainschy commented 3 years ago

The extension works fine for contao 4.4, but has some issues in contao 4.9

Warning: Ambiguous class resolution, "Contao\ModuleSearch" was found 2x: in "/srv/www/vhosts/XXX/vendor/smohring/cearch-pro-bundle/src/Resources/contao/modules/ModuleSearch.php" and "/srv/www/vhosts/XXX/vendor/contao/core-bundle/src/Resources/contao/modules/ModuleSearch.php", the first will be used. Warning: Ambiguous class resolution, "Contao\Search" was found 2x: in "/srv/www/vhosts/XXX/vendor/smohring/cearch-pro-bundle/src/Resources/contao/classes/Search.php" and "/srv/www/vhosts/XXX/vendor/contao/core-bundle/src/Resources/contao/library/Contao/Search.php", the first will be used.

If i can help, let me know.

Misco commented 2 years ago

Hello,

i was able to modify the ModulSearch.php it is working fine and shows context. Language i could not test:

`<?php

/**

namespace Contao;

use Contao\CoreBundle\Exception\PageNotFoundException; use Patchwork\Utf8;

/**

Misco commented 2 years ago

not sure why code display is not working...