Hi,
I have run following PHPCS command and getting following error & warning:
$ phpcs --standard=PHPCompatibility --extensions=php,module,inc,install,test,profile,theme --runtime-set testVersion 7.2 .
FILE: D:\modules\contrib\database_sanitize\vendor\symfony\yaml\Inline.php
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------
108 | WARNING | INI directive 'mbstring.func_overload' is deprecated since PHP 7.2
------------------------------------------------------------------------------------------------
FILE: D:\modules\contrib\database_sanitize\vendor\symfony\yaml\Parser.php
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------
135 | WARNING | INI directive 'mbstring.func_overload' is deprecated since PHP 7.2
------------------------------------------------------------------------------------------------
FILE: D:\modules\contrib\database_sanitize\vendor\symfony\yaml\Tests\InlineTest.php
FOUND 2 ERRORS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------
386 | ERROR | The behaviour of hexadecimal numeric strings was inconsistent prior to PHP 7 and support has been removed in PHP 7. Found: '0x4D2'
467 | ERROR | The behaviour of hexadecimal numeric strings was inconsistent prior to PHP 7 and support has been removed in PHP 7. Found: '0x4D2'
------------------------------------------------------------------------------------------------
FILE: D:\modules\contrib\database_sanitize\vendor\symfony\yaml\Tests\ParserTest.php
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------
50 | WARNING | Since PHP 7.0, functions inspecting arguments, like func_get_args(), no longer report the original value as passed to a parameter, but will instead provide the current value. The parameter "$type" was used, and possibly changed (by reference), on line 46.
53 | WARNING | Since PHP 7.0, functions inspecting arguments, like func_get_args(), no longer report the original value as passed to a parameter, but will instead provide the current value. The parameter "$type" was used, and possibly changed (by reference), on line 46.
------------------------------------------------------------------------------------------------
Any plan to fix this?
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | drupal-7-php-7-2-3057544-1.patch | 2.04 KB | shital.mahajan |
Comments
Comment #2
shital.mahajan commentedComment #3
shital.mahajan commentedComment #4
shital.mahajan commentedComment #5
shital.mahajan commentedComment #6
shital.mahajan commentedComment #7
shital.mahajan commentedApplied following patch to resolve errors and warning.
Comment #8
shital.mahajan commentedComment #9
shital.mahajan commentedComment #10
manuel garcia commentedThanks for the patch!
We shouldn't be patching anything in the vendor directory, instead, we should work with upstream
edisonlabs/merge-yamlwhich is what requiressymfony/yaml, in order to update the yaml package to a version which is compatible with php 7.2.https://github.com/edisonlabs/merge-yaml
Then we can update our dependencies here.
Comment #11
shital.mahajan commentedThanks Manuel for the update.
We are looking into it.
Comment #12
timmillwood