Skip to content

Commit

Permalink
Enable Contao 5
Browse files Browse the repository at this point in the history
  • Loading branch information
qzminski authored and aschempp committed Nov 29, 2022
1 parent 86502f1 commit f057dba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@
},
"require": {
"php": "^7.4 || ^8.0",
"contao/core-bundle": "^4.13",
"contao/core-bundle": "^4.13 || ^5.0",
"league/uri": "^6.0",
"league/uri-components": "^2.0"
},
"require-dev": {
"contao/manager-plugin": "^2.0",
"contao/news-bundle": "^4.13",
"contao/calendar-bundle": "^4.13",
"contao/faq-bundle": "^4.13",
"contao/news-bundle": "^4.13 || ^5.0",
"contao/calendar-bundle": "^4.13 || ^5.0",
"contao/faq-bundle": "^4.13 || ^5.0",
"phpunit/phpunit": "^9.5.24",
"symfony/phpunit-bridge": "^3.3.11",
"phpunit/dbunit": "~1.3"
Expand Down
3 changes: 2 additions & 1 deletion src/EventListener/InsertTagsListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace Terminal42\ChangeLanguage\EventListener;

use Contao\PageModel;
use Contao\StringUtil;
use Contao\System;
use Terminal42\ChangeLanguage\PageFinder;

Expand All @@ -19,7 +20,7 @@ class InsertTagsListener
*/
public function onReplaceInsertTags($insertTag)
{
$parts = trimsplit('::', $insertTag);
$parts = StringUtil::trimsplit('::', $insertTag);

if (0 !== strpos($parts[0], 'changelanguage')) {
return false;
Expand Down

0 comments on commit f057dba

Please sign in to comment.