Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion for PHPUnit assertInternalType assertion is deprecated #1467

Closed
pavlakis opened this issue Dec 14, 2019 · 1 comment
Closed

Suggestion for PHPUnit assertInternalType assertion is deprecated #1467

pavlakis opened this issue Dec 14, 2019 · 1 comment
Assignees
Milestone

Comments

@pavlakis
Copy link

Subject Details
Plugin Php Inspections (EA Extended) or Php Inspections (EA Ultimate), which version
Language level e.g. PHP 7.2 (check project settings or composer.json)

Current behaviour

The suggested for PHPUnit's method assertInternalType is pointing to a deprecated method.

Example:

static::assertTrue(is_string($encodedString));

--

Expected behaviour

As per PHPUnit's warning, it should suggest one of the following:

'assertInternalType() is deprecated and will be removed in PHPUnit 9. Refactor your test to use assertIsArray(), assertIsBool(), assertIsFloat(), assertIsInt(), assertIsNumeric(), assertIsObject(), assertIsResource(), assertIsString(), assertIsScalar(), assertIsCallable(), or assertIsIterable() instead.'

--

Environment details
PhpStorm: 2019.3
Plugin: 4.0.2


@kalessil kalessil self-assigned this Jan 5, 2020
@kalessil kalessil added this to the C-4.0.2 milestone Jan 5, 2020
@kalessil
Copy link
Owner

kalessil commented Jan 5, 2020

Duplicates #1292

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants