Update Composer packages

This commit is contained in:
Paul Nicoué 2022-12-19 14:56:05 +01:00
parent 0320235f6c
commit a8b68fb61b
378 changed files with 28466 additions and 28852 deletions

View file

@ -45,7 +45,7 @@ trait HasChildren
*/
public function children()
{
if (is_a($this->children, 'Kirby\Cms\Pages') === true) {
if ($this->children instanceof Pages) {
return $this->children;
}
@ -59,7 +59,7 @@ trait HasChildren
*/
public function childrenAndDrafts()
{
if (is_a($this->childrenAndDrafts, 'Kirby\Cms\Pages') === true) {
if ($this->childrenAndDrafts instanceof Pages) {
return $this->childrenAndDrafts;
}
@ -118,7 +118,7 @@ trait HasChildren
*/
public function drafts()
{
if (is_a($this->drafts, 'Kirby\Cms\Pages') === true) {
if ($this->drafts instanceof Pages) {
return $this->drafts;
}
@ -217,9 +217,9 @@ trait HasChildren
{
if ($drafts === true) {
return $this->childrenAndDrafts()->index($drafts);
} else {
return $this->children()->index();
}
return $this->children()->index();
}
/**