As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [phpcs]

The tag has no usage guidance.

6 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6 votes
1 answer

Magento2 installation - Failed to set PHP CodeSniffer installed_paths Config

I am trying to install Magento2 using composer. Getting codesniffer error and tried below steps to overcome the error but unfortunately it's not going away STEP 1: Tried to install magento2 $ composer ...
Tahir Yasin's user avatar
1 vote
3 answers

Why does PHP_CodeSniffer only allow me to have a Magento copyright at the top of my code?

When I try to use my own copyright I get this warning when running phpcs: "0: line: 3, col: 1, Copyright is missing or has wrong format" But if I use Magento copyright, I get no warning. No ...
Justin Collins's user avatar
1 vote
0 answers

Outdated codesniffer in MEQP2 composer.json for Magento 2.2?

How to correctly test against MEQP2 standard? Normally i use vendor/bin/phpcs --standard=PSR2 To supress errors a i use this: //phpcs:ignore or //phpcs:disable PSR2 When using MEQP2 standards ...
sv3n's user avatar
  • 11.6k
0 votes
0 answers

Code Sniffer Fails

I am trying to run code sniffing for one of my module and it is giving the below error. **Class 'ArrayObject' is restricted in /usr/share/eqp/PhpCodeSnifferTool/tmp/work/DataObject.php. Suggested ...
Niyati Vora's user avatar
0 votes
1 answer

Magento2 | The use of function getallheaders(), base64_decode(), rawurldecode() is discouraged

The use of function getallheaders(), base64_decode(), rawurldecode() is discouraged. What are the alternative for these in Magento2
Atul Choubey's user avatar
0 votes
0 answers

PHPStorm Xdebug not working

I like to configure and check the code flow using the X-debug break-point, so followed the below tutorial and successfully configured the X-debug in my PHP-storm, I am using php-7.2 https://www....
senthil's user avatar
  • 1,677