From 44eabdc94c453792d060c3218bab9cd3b3b82aaf Mon Sep 17 00:00:00 2001 From: yggverse Date: Fri, 19 Jul 2024 00:10:24 +0300 Subject: [PATCH] fix recursive objects comparsion --- src/Entity/Browser/Container/Page.php | 6 +++--- src/Entity/Browser/Container/Page/Content.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Entity/Browser/Container/Page.php b/src/Entity/Browser/Container/Page.php index 6d3c0543..ca1fef56 100644 --- a/src/Entity/Browser/Container/Page.php +++ b/src/Entity/Browser/Container/Page.php @@ -188,7 +188,7 @@ class Page ); // Refresh header by new title if current page is active - if ($this == $this->container->tab->getPage()) + if ($this === $this->container->tab->getPage()) { $this->container->browser->header->setTitle( $this->title->getValue(), @@ -222,7 +222,7 @@ class Page ); // Refresh header by new title if current page is active - if ($this == $this->container->tab->getPage()) + if ($this === $this->container->tab->getPage()) { $this->container->browser->header->setTitle( $this->title->getValue(), @@ -255,7 +255,7 @@ class Page ); // Refresh header by new title if current page is active - if ($this == $this->container->tab->getPage()) + if ($this === $this->container->tab->getPage()) { $this->container->browser->header->setTitle( $this->title->getValue() diff --git a/src/Entity/Browser/Container/Page/Content.php b/src/Entity/Browser/Container/Page/Content.php index 4b54cf7b..fe640dbd 100644 --- a/src/Entity/Browser/Container/Page/Content.php +++ b/src/Entity/Browser/Container/Page/Content.php @@ -90,7 +90,7 @@ class Content ); // Refresh header by new title if current page is active - if ($this->page == $this->page->container->tab->getPage()) + if ($this->page === $this->page->container->tab->getPage()) { $this->page->container->browser->header->setTitle( $this->page->title->getValue(),