cancel
Showing results for 
Search instead for 
Did you mean: 

Why Magento still use PSR-2 compliance?

Why Magento still use PSR-2 compliance?

Hello,

We are using programming standard normally on our other projects. But i see Magento still using PSR-2 compliance when it's obsolet.  The new recommanded standard are based on PSR-12.  When i running PSR-12, we have a lot of error on Magento vendor code.

 

For best code review on our team, i would like to know if Magento plan to use PSR-12 or still using PSR-2? 

 

Best Regards,

1 REPLY 1

Re: Why Magento still use PSR-2 compliance?

The Magento core development team uses the Magento Coding Standard. PSR-2 compliance comes under Magento Coding Standard.Now that PSR12 has also been accepted. To understand it more refer this link. https://www.php-fig.org/psr/psr-12/meta/
Happy Coding Smiley Happy