Skip to content

Commit 453d8f3

Browse files
claudedeviantintegral
authored andcommitted
fix: use strict comparison (===) instead of weak comparison (==) in Serializer.php
- Changed line 66 to use === for binary comparison - Aligns with strict_types declaration - Improves type safety
1 parent 22057e0 commit 453d8f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Serializer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function serializeHar(Har $data): string
6363
*/
6464
public function removeBOM(string $data): string
6565
{
66-
if (substr($data, 0, 3) == pack('CCC', 0xEF, 0xBB, 0xBF)) {
66+
if (substr($data, 0, 3) === pack('CCC', 0xEF, 0xBB, 0xBF)) {
6767
$data = substr($data, 3);
6868
}
6969

0 commit comments

Comments
 (0)