fix(validation): more lenient scalar validation #1551
coding-conventions.yml
on: pull_request
Run style check
27s
Run static analysis: PHPStan
44s
Annotations
2 warnings
|
strictness/require-identity-comparison:
src/Tempest/Validation/src/Rules/IsInteger.php#L31
Use identity comparison `===` instead of equality comparison `==`.
Identity comparison `===` checks for both value and type equality, while equality comparison `==` performs type coercion, which can lead to unexpected results.
Help: Use `===` to ensure both value and type are equal.
|
|
strictness/require-identity-comparison:
src/Tempest/Validation/src/Rules/IsFloat.php#L23
Use identity comparison `===` instead of equality comparison `==`.
Identity comparison `===` checks for both value and type equality, while equality comparison `==` performs type coercion, which can lead to unexpected results.
Help: Use `===` to ensure both value and type are equal.
|