phpinspectionsea icon indicating copy to clipboard operation
phpinspectionsea copied to clipboard

swap mkdir and is_dir in check to prevent php errors

Open rmpel opened this issue 2 years ago • 1 comments

possible solution for https://github.com/kalessil/phpinspectionsea/issues/1847

I THINK this should do it, but, I have no idea how to compile the plugin and use it in phpStorm.

maybe there needs to be some work done around line 120, as that's where another check is for the presence of is_dir is, however; does it check for the position (before or after mkdir) as well???

rmpel avatar Oct 19 '22 10:10 rmpel

hehe, don't know ;) as said, I have no way to test it. I'll commit your suggestions, but it is up to the maintainer to test/debug, or someone help me set-up a working compile + test in phpStorm, then I can debug it myself (I hope)

rmpel avatar Oct 19 '22 14:10 rmpel