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?

CommentFileSizeAuthor
#7 drupal-7-php-7-2-3057544-1.patch2.04 KBshital.mahajan

Comments

shital.mahajan created an issue. See original summary.

shital.mahajan’s picture

Issue summary: View changes
shital.mahajan’s picture

Issue summary: View changes
shital.mahajan’s picture

Issue summary: View changes
shital.mahajan’s picture

Issue summary: View changes
shital.mahajan’s picture

Issue summary: View changes
shital.mahajan’s picture

StatusFileSize
new2.04 KB

Applied following patch to resolve errors and warning.

shital.mahajan’s picture

Status: Active » Closed (duplicate)
shital.mahajan’s picture

Status: Closed (duplicate) » Needs review
manuel garcia’s picture

Status: Needs review » Needs work

Thanks for the patch!

We shouldn't be patching anything in the vendor directory, instead, we should work with upstream edisonlabs/merge-yaml which is what requires symfony/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.

shital.mahajan’s picture

Thanks Manuel for the update.

We are looking into it.

timmillwood’s picture

Status: Needs work » Closed (won't fix)