- Issue created by @hosterholz
- Merge request !31Issue #3540776 by hosterholz: Add escape param to fputcsv() → (Open) created by hosterholz
Using the default value for the escape parameter for the fputcsv() is deprecated in PHP 8.4.
FILE: ...ocroot/modules/contrib/config_inspector/scripts/config-validatability-report.php
--------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
--------------------------------------------------------------------------------------
29 | WARNING | The $escape parameter must be passed when calling fputcsv() as its
| | default value will change in a future PHP version.
| | (PHPCompatibility.ParameterValues.RemovedProprietaryCSVEscaping.DeprecatedParamNotPassed)
85 | WARNING | The $escape parameter must be passed when calling fputcsv() as its
| | default value will change in a future PHP version.
| | (PHPCompatibility.ParameterValues.RemovedProprietaryCSVEscaping.DeprecatedParamNotPassed)
--------------------------------------------------------------------------------------
composer require --dev --with-all-dependencies \
phpcompatibility/php-compatibility:10.x@dev \
dealerdirect/phpcodesniffer-composer-installer:^1.1
php bin/phpcs -p -s \
--standard=PHPCompatibility \
--runtime-set testVersion 8.4 \
--extensions="inc,install,module,php,profile,theme" \
docroot/modules/contrib/config_inspector
Use a named argument to call fputcsv and use the default value. Named arguments are supported since PHP 8.0.
Active
2.1
Code