phpstan: Could not read file:
Support question
I am seeing the below error when analysing a file:
[obfuscated].php
--- consumed 0 B, total 214.5 MB
Result cache was not saved because of non-ignorable exception: Could not read file:
------ -----------------------------
Line [obfuscated].php
------ -----------------------------
Could not read file:
------ -----------------------------
The issue occurs when the file uses a function which exists in an Ioncube encoded file. For example,
<?php
function foo() {
ioncubeEncodedFunction();
}
If I delete the function usages, the issue goes away.
I have a PHPStan bootstrap file and have checked that ioncubeEncodedFunction exists using function_exists.
PHPStan logs no further output beyond what is mentioned above, even when --debug and -vvv are used.
Please can you help me to debug this further?
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 18 (8 by maintainers)
Fixed 🎉 https://github.com/phpstan/phpstan-src/commit/3ea4fc30474cba6db3dbf99d7e9006756ed8c983