@@ -30,7 +30,7 @@ public function addComment(Comment $value, bool $check_for_duplicate = true): vo
30
30
{
31
31
foreach ($ this ->comments as $ existing )
32
32
{
33
- if ($ existing === $ value ) return ;
33
+ if ($ existing == $ value ) return ;
34
34
}
35
35
}
36
36
@@ -48,7 +48,7 @@ public function addDocument(Document $value, bool $check_for_duplicate = true):
48
48
{
49
49
foreach ($ this ->documents as $ existing )
50
50
{
51
- if ($ existing === $ value ) return ;
51
+ if ($ existing == $ value ) return ;
52
52
}
53
53
}
54
54
@@ -66,7 +66,7 @@ public function addNewsPost(NewsPost $value, bool $check_for_duplicate = true):
66
66
{
67
67
foreach ($ this ->news_posts as $ existing )
68
68
{
69
- if ($ existing === $ value ) return ;
69
+ if ($ existing == $ value ) return ;
70
70
}
71
71
}
72
72
@@ -84,7 +84,7 @@ public function addPacket(Packet $value, bool $check_for_duplicate = true): void
84
84
{
85
85
foreach ($ this ->packets as $ existing )
86
86
{
87
- if ($ existing === $ value ) return ;
87
+ if ($ existing == $ value ) return ;
88
88
}
89
89
}
90
90
@@ -102,7 +102,7 @@ public function addServer(Server $value, bool $check_for_duplicate = true): void
102
102
{
103
103
foreach ($ this ->servers as $ existing )
104
104
{
105
- if ($ existing === $ value ) return ;
105
+ if ($ existing == $ value ) return ;
106
106
}
107
107
}
108
108
@@ -120,7 +120,7 @@ public function addUser(User $value, bool $check_for_duplicate = true): void
120
120
{
121
121
foreach ($ this ->users as $ existing )
122
122
{
123
- if ($ existing === $ value ) return ;
123
+ if ($ existing == $ value ) return ;
124
124
}
125
125
}
126
126
0 commit comments