Skip to content

PHPCBF can't change files outside of home directory #4

@jhaagsma

Description

@jhaagsma

Firstly, thanks for this plugin!

So I'm working on a repository that's not in my home directory. I can sniff it with Sniff this file, but I can't use phpcbf to fix it.

I tried copying the file to my home folder and changing its permissions to be owned by me, and that worked fine. I copied it back to the other folder /home/different_user with my permissions preserved and I still couldn't changed it. On the chance that it was the folder permissions, I changed ownership of the other home folder to myself and it still wouldn't work.

So, I have two identical files, one in my home folder, one in a different home folder (both the other home folder and file owned by me, with identical permissions), and I can only change the one in my home folder.

I glanced at the source, but didn't see anything obvious that would lead to that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions