This is an automated archive.

The original was posted on /r/php by /u/noobMasterrrr_69 on 2023-08-25 12:07:35+00:00.


(I am new to all this.)

Hi, so i am doing my undergrad and i am also learning web development along with it. I recently found out about phpcs and i tried getting it for my computer. So i installed it and followed the process. I installed composer and then installed the phpcs. Set the path variables too, then installed phpcs & phpcbf extension on vs code. (I use vs code) Then extracted the vendor files in wpcs folder. I even set the necessary configurations of my vscode setting in settings.json file. Then i opened a project (beginner level) of mine And tried formatting the document. The error of blank spaces got formatted but its still showing error on every line. The error is not the white spaces but its in every line where there is a variable. The variable is the error. The same code was properly running before i tried phpcs. The error message shows something about comments and member variable.

Like: “missing member variable doc comment” Or “missing doc comment for….”

I cannot even use mysqli database functions like cause it says

“Accessing the database directly should be avoided. Use the $wpdb object and associated function instead.”

There is also a error message on the first line while opening the php tag “