Skip to content

Commit

Permalink
unlock Contao 5
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzmg committed Oct 31, 2022
1 parent 79825ed commit 28979c4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
8 changes: 5 additions & 3 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@
'escape_implicit_backslashes' => true,
'fully_qualified_strict_types' => true,
'general_phpdoc_annotation_remove' => [
'author',
'expectedException',
'expectedExceptionMessage',
'annotations' => [
'author',
'expectedException',
'expectedExceptionMessage',
],
],
'header_comment' => ['header' => $header],
'heredoc_to_nowdoc' => true,
Expand Down
12 changes: 7 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,15 @@
],
"require": {
"php": ">=7.1",
"contao/core-bundle": "^4.4",
"symfony/dependency-injection": "^3.4 || ^4.4 || ^5.1",
"symfony/config": "^3.4 || ^4.4 || ^5.1",
"symfony/http-kernel": "^3.4 || ^4.4 || ^5.1"
"contao/core-bundle": "^4.4 || ^5.0",
"doctrine/dbal": "^2.11 || ^3.0",
"symfony/dependency-injection": "^3.4 || ^4.4 || ^5.1 || ^6.0",
"symfony/config": "^3.4 || ^4.4 || ^5.1 || ^6.0",
"symfony/http-kernel": "^3.4 || ^4.4 || ^5.1 || ^6.0"
},
"require-dev": {
"contao/manager-plugin": "^2.0"
"contao/manager-plugin": "^2.0",
"friendsofphp/php-cs-fixer": "^2.16 || ^3.0"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion src/EventListener/InheritArticleListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ private function getRenderedInheritedArticles(int $pageId, string $column): stri
// Search for next parent ids while parent id > 0
do {
// Get the next pid
$parent = $this->db->executeQuery('SELECT pid FROM tl_page WHERE id=?', [$pid])->fetchAssociative();
$parent = $this->db->fetchAssociative('SELECT pid FROM tl_page WHERE id=?', [$pid]);

// If there are no parents anymore, break the loop
if (!$parent) {
Expand Down

0 comments on commit 28979c4

Please sign in to comment.