psalm-github-actions icon indicating copy to clipboard operation
psalm-github-actions copied to clipboard

Unable to configure php prior to scanning

Open bpearson-swoop opened this issue 9 months ago • 2 comments

I have tried to use this github action (and it worked fine in the past), however I am unable to configure php (like php.ini) before running psalm. I know you can write a bootstrap file and use it as an autoloader to do some of the configs with ini_set() however not all config options can be configured this way and require a direct change to the ini file. The dockerfile does some configuration when building the image, but it would be good if entrypoint.sh could also some configuration based on the yaml options (you would probably have to check the config and fail gracefully or revert if the configuration option is bad)

bpearson-swoop avatar Mar 05 '25 10:03 bpearson-swoop

What do you need to configure specifically?

danog avatar Mar 05 '25 10:03 danog

short_open_tag is one I can see right now. But honestly it would be easier to change the include_path as well.

bpearson-swoop avatar Mar 05 '25 11:03 bpearson-swoop