lint/phpunit/no-assert-internal-type
In the code-quality set. Unsafe fix: it can change behaviour. Runs when phpunit is installed.
What it does
Replace assertInternalType() with the dedicated assertIs*() assertion.
Configuration
[lint.rules]
"phpunit/no-assert-internal-type" = "error"
To skip it in some files, add an override or a @pun-ignore-file comment.
Options
| Name | Type | Allowed values | Default | Upstream name |
|---|---|---|---|---|
target |
enum |
7.5, newest |
"newest" |
target |
Replaces
php_unit_dedicate_assert_internal_type(php-cs-fixer, risky)