Ray PHP Problems reports unreachable code but then when you open the file the PHP problem disappears. Why is there a difference from the background PHP Problem process and when the file is open?
MiloslavBeno Hi Ray, Could you please provide us with this Db.php file? I will try to setup a test case for this, or is it happening on other files as well? Thank you
Ray This is only happening for this one file and the transaction() function. It has something to do with throwing the exception at the bottom. If I remove it then the problem never appears. The Db.php has many use statements and will not work for you without the entire library
MiloslavBeno I just need the file for the code analysis engine, so I can try to create a test case. I don't really need the rest of the library for this one. If I rewrite the function (it always helps to send a text as well :-) ) I'm not able to replicate it.
Ray When trying to upload the file I get the following error: Uploading files of this type is not allowed. Do you have an email I can send it to?
MiloslavBeno Probably some security thing, I will check that. Sure, miloslav at devsense.com Thank you!
MiloslavBeno Thanks. So do I, so that will not be a factor it appears. It looks like it's not an issue in the particular file, but in some bigger projects in general. So far, we haven't been able to reproduce
JakubMisek @Ray I thing this one was fixed together with https://github.com/DEVSENSE/phptools-docs/issues/202 I'll close the issue here, and please let us know if it happens again. Thank you