---
title: "lint/phpunit/no-float-delta-parameter"
pagination: false
---

{/* Generated by scripts/gen-rule-docs.py. Edit mapping.toml, not this file. */}

<RuleId id="lint/phpunit/no-float-delta-parameter" />

In the [`code-quality`](/docs/rules/sets/code-quality) set. Safe fix. Runs when phpunit is installed.

## What it does

Change assertEquals()/assertSame() method using float on expected argument to new specific alternatives.

## Configuration

```toml title="pun.toml"
[lint.rules]
"phpunit/no-float-delta-parameter" = "error"
```

To skip it in some files or lines, add an [override](/docs/configuration/pun-toml#lint) or an [ignore comment](/docs/configuration/ignore-comments).

## Replaces

- [`AssertEqualsOrAssertSameFloatParameterToSpecificMethodsType`](https://getrector.com/rule-detail/assert-equals-or-assert-same-float-parameter-to-specific-methods-type-rector) (rector-phpunit)

[More lint/phpunit rules](/docs/rules/lint/phpunit) · [Edit this page](https://github.com/shipfastlabs/pun/edit/main/crates/pun-config/rules/mapping.toml)
