magento-coding-standard icon indicating copy to clipboard operation
magento-coding-standard copied to clipboard

Magento Coding Standard

Results 91 magento-coding-standard issues
Sort by recently updated
recently updated
newest added

Changes included in this pull request: - update list of void elements - automatically fix closing tags when possible - annotate the offending lines not the file

partners-contribution
Progress: approved
Partner: Fisheye

### Preconditions 1. Magento 2.4.5-p1 2. Magento Coding Standard v29 ### Steps to reproduce 1. Create a php file, where you include any namespaced class from [restricted_classes.php](https://github.com/magento/magento-coding-standard/blob/develop/Magento2/Sniffs/Legacy/_files/restricted_classes.php) for example [\Magento\Framework\Serialize\Serializer\Serialize](https://github.com/magento/magento-coding-standard/blob/v29/Magento2/Sniffs/Legacy/_files/restricted_classes.php#L337)...

bug
Progress: ready for grooming

While working on https://github.com/magento/magento2/pull/37020, I noticed that the Magento coding standard was requiring a docblock comment for the following constructor: https://github.com/magento/magento2/blob/322047d01d98b584892c6058ed93c5bf6715add8/lib/internal/Magento/Framework/Data/Tree.php#L28-L33 ```php public function __construct() { $this->_nodes = new NodeCollection($this);...

partners-contribution
Progress: approved
Partner: Youwe

### Preconditions 1. Example of the less file ``` .mixin-example(@my-selector) { .@{my-selector} { background: #fff } } .mixin-example(input-box) ``` 2. Magento v2.4.5-p1 3. PHP v8.1 4. magento/magento-coding-standart v29 ### Steps...

bug
Progress: PR created

### Preconditions Add attribute in Data Patch using `$eavSetup->addAttribute()` method. Place DataPatch in Vendor/Module/Setup/Patch/Data/AddTestAttribute.php file. Example ```php $eavSetup = $this->eavSetupFactory->create(['setup' => $this->moduleDataSetup]); $eavSetup->addAttribute(Product::ENTITY, $attributeCode, $attribute); ``` ### Steps to reproduce...

Progress: ready for grooming

### Steps to reproduce 1. Use Zend_Validate in your extension 2. Validate extension with the last (26) version of Magento Coding Standard ### Expected result 1. Extension is not valid...

bug
Progress: ready for grooming

### Rule Forbid calling Magento\Framework\Module\Status::setIsEnabled ### Reason Experienced downtime as a result of a magento marketplace module (feefo/reviews) calling setIsEnabled(true) in production mode. The target was Magento_Review, which was installed...

proposal
Progress: ready for grooming

Fixes #477

partners-contribution
Progress: ready for review
Partner: Youwe

### Description There is a false waring case when current sniffer rule detects system resources functions (stream_, socket_) declared in the "**use function** .." section. ### Expected behavior When system...

enhancement
Progress: PR created