Skip to content

Undefined index: comment_closer in AbstractApiSniff.php #86

Closed
@tudalrik-ls

Description

@tudalrik-ls

Preconditions

  1. magento/magento-coding-standard 1.0.2
  2. PHP_CodeSniffer version 3.3.2 (stable) by Squiz (http://www.squiz.net)
  3. PHP 7.2.15-0ubuntu0.18.04.2 (cli) (built: Mar 22 2019 17:05:14) ( NTS )

Steps to reproduce

  1. magento-coding-standard/vendor/bin/phpcs --standard=Magento2 --ignore=magento-coding-standard ./
  2. File content of AbstractArray.php
<?php

namespace LimeSoda\Framework\Option;

abstract class AbstractArray implements OptionArrayInterface
{
}

Expected result

  1. Warnings about missing comments, ...
  2. No error

Actual result

FILE: /test/magento2-framework/Option/AbstractArray.php
----------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------
 1 | ERROR | An error occurred during processing; checking has been aborted. The error message was: Undefined index: comment_closer in
   |       | /test/magento2-framework/magento-coding-standard/Magento2/Sniffs/Classes/AbstractApiSniff.php on line 51
----------------------------------------------------------------------------
Time: 173ms; Memory: 6Mb

Metadata

Metadata

Assignees

Labels

acceptedNew rule is acceptedbugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions