$ phpcs --standard=Drupalpractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml post_api/
Xdebug: [Step Debug] Time-out connecting to debugging client, waited: 200 ms. Tried: localhost:9000 (through xdebug.client_host/xdebug.client_port) :-(
FILE: C:\Users\SI-001\Downloads\post_api\src\Form\PostApiQueueForm.php
--------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------------------------
112 | ERROR | unserialize() is insecure unless allowed classes are limited. Use a safe format like JSON or use the allowed_classes option.
--------------------------------------------------------------------------------------------------------------------------------------------
Time: 399ms; Memory: 8MB
Issue fork post_api-3303851
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
rakhi soni commentedKindly review patch,,
Comment #3
mauryarahul11Thanks @Rakhi Soni for your patch, After applying your patch unserialize error is resolved but there are other errors and warnings i have found (listed below) when i ran phpcs with standards
DrupalandDrupalPractice. Hence moving it to Needs Work.Comment #4
dharti patel commentedHello,
I'll work on this issue.
Thanks!
Comment #5
dharti patel commentedHello,
I have created a patch to fix this issue.
Kindly review the patch.
Thanks!
Comment #6
mauryarahul11Thanks @Dharti Patel, I reviewed your patch and after applying it, i can not see any errors and warnings related to phpcs. Hence moving it to RTBC.
Thanks!
Comment #7
swirtI am accepting the patch from #2 as it was focused on the problem of this issue.
Patch #5 tried to resolve unrelated issues.
Comment #10
swirtComment #11
swirtRelease in 2.0.6