-
Notifications
You must be signed in to change notification settings - Fork 20
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
Undefined array key "file"
issue on DoctrineBundle CI
#44
Comments
Also see comment from @stof : doctrine/DoctrineBundle#1667 (comment) |
I witnessed something similar this morning when trying |
This was not called by static analysis because the doctrine/deprecations codebase uses |
That and there is no static analysis setup on |
Let's start there I guess: #45 |
On the ORM, I think it happens because of |
benefit of using 2 SA tools: At level 7, phpstan detects some of the broken usages (not all of them due to the unprecise phpdoc when passing the backtrace to a private method, but it finds the ones when the output of |
I'm working on fixing this |
According to https://www.php.net/manual/fr/function.debug-backtrace.php#59713 there is another case where both file and lines might be missing: when the frame corresponds to a builtin function. |
Trying to reproduce it for tests, this is not related to eval'd code. Such code has a The case where the file is missing is for frames corresponding to native code. $service = null === $r->getConstructor() ? $r->newInstance() : $r->newInstanceArgs($arguments); As the AttributeDriver triggers an exception in its constructor, we end up with frame 0 (the deprecation trigger) being called in the AttributeDriver constructor and frame 1 (the constructor) being called inside |
We have the following issue on DoctrineBundle CI:
I get the same error locally and
$backtrace[1]
only contains:The text was updated successfully, but these errors were encountered: