Skip to content

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