Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Use PSR-12 as default Rule Set

See original GitHub issue

Hi @junstyle, wouldn’t it be better to change the default value of the rule set to be "@PSR12" instead of "@PSR2" ?

“As of 2019-08-10 PSR-2 has been marked as deprecated. PSR-12 is now recommended as an alternative.”

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

junstylecommented, Aug 1, 2022

ok, updated

junstylecommented, Sep 9, 2022

already set to @PER in new version

Read more comments on GitHub >

github_iconTop Results From Across the Web

PSR-12: Extended Coding Style - PHP-FIG
Closure arguments with default values MUST go at the end of the argument list. If a return type is present, it MUST follow...
Read more >
Creating Your Own Standard for PHP_CodeSniffer
We can use it by either specifying the standard as the default or we can pass it using the --standard command-line switch. ./vendor/bin/phpcs...
Read more >
PhpStorm and PSR-12, how can I add it as default coding style?
PHPStorm Steps for setting coding style to PSR. Navgate to Preferences>Editor>Code Style>PHP. Click on "Set From" link and select PSR12.
Read more >
How to configure PHP_CodeSniffer coding standards?
By default, Codacy uses the PHP_CodeSniffer configuration on the Code patterns page when ... <ruleset name="PHP_CodeSniffer"> <description>PHP_CodeSniffer ...
Read more >
Rule function_declaration - PHP Coding Standards Fixer
The rule is part of the following rule sets: @PER. Using the @PER rule set will enable the function_declaration rule with the default...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found