Skip to content
This repository was archived by the owner on Feb 28, 2025. It is now read-only.

Commit 229cba7

Browse files
committed
Use strict comparison
1 parent 15f9bf7 commit 229cba7

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

phpcs.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
<exclude name="SlevomatCodingStandard.ControlStructures.UselessIfConditionWithReturn" />
4343
<exclude name="SlevomatCodingStandard.Functions.StaticClosure" />
4444
<exclude name="SlevomatCodingStandard.Functions.UnusedInheritedVariablePassedToClosure" />
45-
<exclude name="SlevomatCodingStandard.Operators.DisallowEqualOperators" />
4645

4746
<!-- ********************* -->
4847
<!-- Exclude broken sniffs -->

src/Builder/BuilderEncoder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ private function getEncoderFor(object $value): ExpressionEncoder|null
8585

8686
// First attempt: match class name exactly
8787
foreach ($encoderList as $className => $encoderClass) {
88-
if ($className == $valueClass) {
88+
if ($className === $valueClass) {
8989
return $this->cachedEncoders[$valueClass] = new $encoderClass($this);
9090
}
9191
}

0 commit comments

Comments
 (0)