Skip to content

fix(validation): more lenient scalar validation #1552

fix(validation): more lenient scalar validation

fix(validation): more lenient scalar validation #1552

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

coding-conventions.yml

on: pull_request
Run style check
26s
Run style check
Run static analysis: PHPStan
48s
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#L27
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#L27
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.