@@ -30,7 +30,7 @@ public function addComment(Comment $value, bool $check_for_duplicate = true): vo
3030 {
3131 foreach ($ this ->comments as $ existing )
3232 {
33- if ($ existing === $ value ) return ;
33+ if ($ existing == $ value ) return ;
3434 }
3535 }
3636
@@ -48,7 +48,7 @@ public function addDocument(Document $value, bool $check_for_duplicate = true):
4848 {
4949 foreach ($ this ->documents as $ existing )
5050 {
51- if ($ existing === $ value ) return ;
51+ if ($ existing == $ value ) return ;
5252 }
5353 }
5454
@@ -66,7 +66,7 @@ public function addNewsPost(NewsPost $value, bool $check_for_duplicate = true):
6666 {
6767 foreach ($ this ->news_posts as $ existing )
6868 {
69- if ($ existing === $ value ) return ;
69+ if ($ existing == $ value ) return ;
7070 }
7171 }
7272
@@ -84,7 +84,7 @@ public function addPacket(Packet $value, bool $check_for_duplicate = true): void
8484 {
8585 foreach ($ this ->packets as $ existing )
8686 {
87- if ($ existing === $ value ) return ;
87+ if ($ existing == $ value ) return ;
8888 }
8989 }
9090
@@ -102,7 +102,7 @@ public function addServer(Server $value, bool $check_for_duplicate = true): void
102102 {
103103 foreach ($ this ->servers as $ existing )
104104 {
105- if ($ existing === $ value ) return ;
105+ if ($ existing == $ value ) return ;
106106 }
107107 }
108108
@@ -120,7 +120,7 @@ public function addUser(User $value, bool $check_for_duplicate = true): void
120120 {
121121 foreach ($ this ->users as $ existing )
122122 {
123- if ($ existing === $ value ) return ;
123+ if ($ existing == $ value ) return ;
124124 }
125125 }
126126
0 commit comments