You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Magento Coding Standard v31 i.e magento/magento-coding-standard: 31
PHP 8.1|8.2
Steps to reproduce
Create a class
<?php
declare(strict_types=1);
namespace Vendor\Module\Handler;
use Vendor\Module\Service\IsLoggingServiceInterface;
use Magento\Framework\Filesystem\DriverInterface;
use Magento\Framework\Logger\Handler\Base as BaseHandler;
use Monolog\Logger;
class IfConfigured extends BaseHandler
{
/**
* @var IsLoggingServiceInterface
*/
private readonly IsLoggingServiceInterface $loggingEnabledService;
}
vendor/bin/phpcs --standard=Magento2 . -s
Expected result
It should not throw a warning
Actual result
Throws warning
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------
17 | WARNING | Missing PHP DocBlock for class property.
| | (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing)
The text was updated successfully, but these errors were encountered:
Hi @sandipklevu. Thank you for your report.
To speed up processing of this issue, make sure that you provided sufficient information.
Add a comment to assign the issue: @magento I am working on this
Preconditions
magento/magento-coding-standard: 31
Steps to reproduce
vendor/bin/phpcs --standard=Magento2 . -s
Expected result
Actual result
The text was updated successfully, but these errors were encountered: