Upgrade to 3.8.0

This commit is contained in:
Bastian Allgeier
2022-10-06 10:11:54 +02:00
parent a9ed4e45ca
commit 7d168aae58
332 changed files with 26337 additions and 21977 deletions

View File

@@ -81,7 +81,7 @@ class StructureObject extends Model
*/
public function content()
{
if (is_a($this->content, 'Kirby\Cms\Content') === true) {
if ($this->content instanceof Content) {
return $this->content;
}
@@ -110,7 +110,7 @@ class StructureObject extends Model
*/
public function is($structure): bool
{
if (is_a($structure, 'Kirby\Cms\StructureObject') === false) {
if ($structure instanceof self === false) {
return false;
}