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

Ignore phpstan argument.type lint in test #169

Conversation

lianatech-matias-ylipelto
Copy link
Contributor

@lianatech-matias-ylipelto lianatech-matias-ylipelto commented Dec 2, 2024

PHPStan tests fail because one test purposefully uses wrong type of input. This pull request will tell PHPStan to ignore "argument.type" lint for this one line.

------ ---------------------------------------------------------------------------------------------------------- 
  Line   tests/Test/Prometheus/Storage/APCngTest.php                                                               
 ------ ---------------------------------------------------------------------------------------------------------- 
  59     Parameter #2 $labels of method Prometheus\Counter::incBy() expects array<string>, array<int, int> given.  
         🪪  argument.type                                                                                         
 ------ ----------------------------------------------------------------------------------------------------------

Signed-off-by: Matias Ylipelto <129368437+lianatech-matias-ylipelto@users.noreply.github.com>
@LKaemmerling
Copy link
Member

Thank you!

@LKaemmerling LKaemmerling merged commit 12af805 into PromPHP:main Dec 2, 2024
24 checks passed
@lianatech-matias-ylipelto lianatech-matias-ylipelto deleted the ignore-argument-type-in-non-string-label-value-test branch December 2, 2024 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants