Skip to content

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Aug 29, 2025

Description

A number of tests verify the behaviour of PHPCS when a user tries to change a "php.ini only" ini setting, which should result in an error being displayed.

Unfortunately, the ini setting which was being used for these tests will be removed as of PHP 8.5, so this commit switches out the disable_classes ini setting for the expose_php ini setting to still be able to verify the behaviour.

Ref:

Suggested changelog entry

N/A - test only change

A number of tests verify the behaviour of PHPCS when a user tries to change a "php.ini only" ini setting, which should result in an error being displayed.

Unfortunately, the ini setting which was being used for these tests will be removed as of PHP 8.5, so this commit switches out the `disable_classes` ini setting for the `expose_php` ini setting to still be able to verify the behaviour.

Ref:
* https://wiki.php.net/rfc/deprecations_php_8_5#remove_disable_classes_ini_setting
* https://www.php.net/manual/en/ini.core.php
@jrfnl jrfnl added this to the 4.0.0 milestone Aug 29, 2025
@jrfnl jrfnl merged commit ceb3624 into 4.x Aug 29, 2025
69 checks passed
@jrfnl jrfnl deleted the feature/update-test-for-php-8.5-removed-feature branch August 29, 2025 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant