Closed staabm closed 4 months ago
@staabm
Yes, by default it is using the production php.ini. I cannot change it without a major version bump, so this will change in v3
.
Till then, you can use the ini-file
file input and set it to development
for better defaults for a CI environment.
https://github.com/shivammathur/setup-php#ini-file-optional
ohh nice, thank you.
I am a long time user of this great action and never realised.. maybe it needs to be more prominent in the README?
Describe the bug
In CI no deprecation warnings are emitted per default
Version
v1
orv2
.v2
v1
Runners
Operating systems
ubuntu-latest
PHP versions
8.x
To Reproduce
Expected behavior
php should emit a deprecation warning and the pipeline should fail with
to make the CI fail I had to add E_ALL error level manually, which I expected to be the default
without my fix it just did not emit the deprecation warning and unexpectedly succeeded