deployphp / distribution

Deployer Phar Distribution
30 stars 9 forks source link

Unable to use phpstan without the `.phar` extension #14

Closed benoitchantre closed 2 years ago

benoitchantre commented 3 years ago

I'm working on a package with custom recipes and would like to use phpstan, but it dosen't work, because the distribution file has no extension.

The following config works with phpstan when I rename dep to dep.phar.

parameters:
    bootstrapFiles:
        - phar://vendor/deployer/dist/dep.phar/vendor/autoload.php

Would it be possible keep the extension in the distribution and to add a symlink to keep backward compatibility?

antonmedv commented 3 years ago

Yes, I think we can do it. We just need to keep deployer.phar as is.

benoitchantre commented 3 years ago

Thank you for the quick feedback