Skip to content

fix(validation): more lenient scalar validation #1551

fix(validation): more lenient scalar validation

fix(validation): more lenient scalar validation #1551

Triggered via pull request April 8, 2025 08:39
Status Success
Total duration 49s
Artifacts

coding-conventions.yml

on: pull_request
Run style check
27s
Run style check
Run static analysis: PHPStan
44s
Run static analysis: PHPStan
Fit to window
Zoom out
Zoom in

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.