-
-
Notifications
You must be signed in to change notification settings - Fork 377
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
expects parameter 1 to be string, integer given #671
Comments
I do not understand why Thank you for your report. Please provide a minimal, self-contained, reproducing test case that shows the problem you are reporting. Without such a minimal, self-contained, reproducing test case I will not be able to investigate this issue and find the root cause for this. I am afraid that that justing adding the cast you mentioned will hide the real problem. |
It's apparently a repository issue. If the name of a repository is a number, it fails. I created a project with this structure:
Both File.php and 1234/File.php are empty. composer.json
phpunit.xml
Then run Issue1149.php is not related to this issue (I had a subproject inside the whitelist scope, with a vendor repository and where phpunit was also installed). |
Hello,
Running the code coverage with phpunit , the coverage generation failed with this error:
Using a debugger, I could see that $key was
1149
and value was referring the fileIssue1149.php
.I added a cast (
$key = (string) $key;
before the line 38, it fixed the issue.Here is the full logs.
The text was updated successfully, but these errors were encountered: