Crashes.

03:04:51 ~$ composer global require drupal/coder
Changed current directory to /home/chriscalip/.composer
You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug
Using version ^8.2 for drupal/coder
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Removing drupal/coder (8.2.10)
  - Installing drupal/coder (8.2.12)
    Downloading: 100%         

Writing lock file
Generating autoload files
03:05:15 ~$ phpcs --standard=Drupal --report=diff /home/chriscalip/projects/sites-multi/d8-dev/modules/search_api_algolia/
PHP Fatal error:  Class 'Symfony\Component\Yaml\Yaml' not found in /home/chriscalip/.composer/vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/InfoFiles/AutoAddedKeysSniff.php on line 54
PHP Stack trace:
PHP   1. {main}() /home/chriscalip/phpcs.phar:0
PHP   2. PHP_CodeSniffer_CLI->runphpcs() /home/chriscalip/phpcs.phar:6
PHP   3. PHP_CodeSniffer_CLI->process() phar:///home/chriscalip/phpcs.phar/CodeSniffer/CLI.php:113
PHP   4. PHP_CodeSniffer->processFiles() phar:///home/chriscalip/phpcs.phar/CodeSniffer/CLI.php:998
PHP   5. PHP_CodeSniffer->processFile() phar:///home/chriscalip/phpcs.phar/CodeSniffer.php:653
PHP   6. PHP_CodeSniffer->_processFile() phar:///home/chriscalip/phpcs.phar/CodeSniffer.php:1772
PHP   7. PHP_CodeSniffer_File->start() phar:///home/chriscalip/phpcs.phar/CodeSniffer.php:1894
PHP   8. Drupal_Sniffs_InfoFiles_AutoAddedKeysSniff->process() phar:///home/chriscalip/phpcs.phar/CodeSniffer/File.php:576
03:05:24 ~$ composer global require symfony/yaml
Changed current directory to /home/chriscalip/.composer
You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug
Using version ^3.2 for symfony/yaml
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Removing symfony/yaml (v3.1.5)
  - Installing symfony/yaml (v3.2.8)
    Downloading: 100%         

Writing lock file
Generating autoload files
03:07:40 ~$ phpcs --standard=Drupal --report=diff /home/chriscalip/projects/sites-multi/d8-dev/modules/search_api_algolia/
PHP Fatal error:  Class 'Symfony\Component\Yaml\Yaml' not found in /home/chriscalip/.composer/vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/InfoFiles/AutoAddedKeysSniff.php on line 54
PHP Stack trace:
PHP   1. {main}() /home/chriscalip/phpcs.phar:0
PHP   2. PHP_CodeSniffer_CLI->runphpcs() /home/chriscalip/phpcs.phar:6
PHP   3. PHP_CodeSniffer_CLI->process() phar:///home/chriscalip/phpcs.phar/CodeSniffer/CLI.php:113
PHP   4. PHP_CodeSniffer->processFiles() phar:///home/chriscalip/phpcs.phar/CodeSniffer/CLI.php:998
PHP   5. PHP_CodeSniffer->processFile() phar:///home/chriscalip/phpcs.phar/CodeSniffer.php:653
PHP   6. PHP_CodeSniffer->_processFile() phar:///home/chriscalip/phpcs.phar/CodeSniffer.php:1772
PHP   7. PHP_CodeSniffer_File->start() phar:///home/chriscalip/phpcs.phar/CodeSniffer.php:1894
PHP   8. Drupal_Sniffs_InfoFiles_AutoAddedKeysSniff->process() phar:///home/chriscalip/phpcs.phar/CodeSniffer/File.php:576
03:07:43 ~$ phpcs --standard=Drupal /home/chriscalip/projects/sites-multi/d8-dev/modules/search_api_algolia/
PHP Fatal error:  Class 'Symfony\Component\Yaml\Yaml' not found in /home/chriscalip/.composer/vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/InfoFiles/AutoAddedKeysSniff.php on line 54
PHP Stack trace:
PHP   1. {main}() /home/chriscalip/phpcs.phar:0
PHP   2. PHP_CodeSniffer_CLI->runphpcs() /home/chriscalip/phpcs.phar:6
PHP   3. PHP_CodeSniffer_CLI->process() phar:///home/chriscalip/phpcs.phar/CodeSniffer/CLI.php:113
PHP   4. PHP_CodeSniffer->processFiles() phar:///home/chriscalip/phpcs.phar/CodeSniffer/CLI.php:998
PHP   5. PHP_CodeSniffer->processFile() phar:///home/chriscalip/phpcs.phar/CodeSniffer.php:653
PHP   6. PHP_CodeSniffer->_processFile() phar:///home/chriscalip/phpcs.phar/CodeSniffer.php:1772
PHP   7. PHP_CodeSniffer_File->start() phar:///home/chriscalip/phpcs.phar/CodeSniffer.php:1894
PHP   8. Drupal_Sniffs_InfoFiles_AutoAddedKeysSniff->process() phar:///home/chriscalip/phpcs.phar/CodeSniffer/File.php:576
03:08:19 ~$

Comments

chriscalip created an issue. See original summary.

chriscalip’s picture

Status: Active » Closed (outdated)

I installed phpcs the wrong way.

sanduhrs’s picture

Status: Closed (outdated) » Active

I'm experiencing the same issue, can you please explain your solution?

danielheramb’s picture

@chriscalip Can you describe how exactly you had phpcs installed the "wrong way"?

I'm getting this same error and am unsure if it has to do with my docker installation, the CodeSniffer config we've got in our project, the local version of CodeSniffer I've got installed through Homebrew, or something else altogether.

chriscalip’s picture

@sanduhrs

It's been awhile since I had this issue. Looking at my journal it seems doing a composer global install of yaml solved my problem.

composer global require symfony/yaml
phpcs --config-set installed_paths /home/chriscalip/.composer/vendor/drupal/coder/coder_sniffer
phpcs --config-set installed_paths ~/.composer/vendor/drupal/coder/coder_sniffer
/usr/share/php/data/PHP_CodeSniffer/CodeSniffer.conf
/etc/php-codesniffer
phpcs --standard=Drupal --report=diff /home/chriscalip/projects/sites-multi/d8-dev/modules/search_api_algolia


FILE: ...rojects/sites-multi/d8-dev/modules/search_api_algolia/README.txt
----------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
----------------------------------------------------------------------
 62 | WARNING | Line exceeds 80 characters; contains 107 characters
 63 | WARNING | Line exceeds 80 characters; contains 94 characters
----------------------------------------------------------------------
chriscalip’s picture

Status: Active » Closed (works as designed)
arnoldbird’s picture

Status: Closed (works as designed) » Active

I'm not sure if this is more of a bug, or a support request, but when I try to install yaml globally, I get...

Using version ^3.4 for symfony/yaml
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Conclusion: don't install symfony/yaml v3.4.1
    - symfony/console v3.3.13 conflicts with symfony/yaml[v3.4.0].
    - symfony/yaml v3.4.0 conflicts with symfony/console[v3.3.13].
    - symfony/yaml v3.4.0 conflicts with symfony/console[v3.3.13].
    - Installation request for symfony/yaml ^3.4 -> satisfiable by symfony/yaml[v3.4.0, v3.4.1].
    - Installation request for symfony/console (locked at v3.3.13) -> satisfiable by symfony/console[v3.3.13].

Installation failed, reverting ./composer.json to its original content.
arnoldbird’s picture

Status: Active » Closed (works as designed)

I was able to resolve the problem. I'm not sure how. I added the following to the "require" section of my composer.json:

"symfony/yaml": "^3.1"

I also deleted core and vendor and ran composer update. I had to try it a few times.

It also may have helped me to run...

composer global require dealerdirect/phpcodesniffer-composer-installer

arnoldbird’s picture

Status: Closed (works as designed) » Active

I am running into the same issue again:

PHP Fatal error: Uncaught Error: Class 'Symfony\Component\Yaml\Yaml' not found in /root/.composer/vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/InfoFiles/AutoAddedKeysSniff.php:54

xpersonas’s picture

I'm getting this too. DrupalPractice works. But Drupal does not.

Works:
phpcs --standard=DrupalPractice .

Fails:
phpcs --standard=Drupal .

PHP Fatal error:  Uncaught Error: Class 'Symfony\Component\Yaml\Yaml' not found in /Users/grayloon/.composer/vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/InfoFiles/AutoAddedKeysSniff.php:54
Stack trace:
#0 phar:///usr/local/bin/phpcs/CodeSniffer/File.php(576): Drupal_Sniffs_InfoFiles_AutoAddedKeysSniff->process(Object(PHP_CodeSniffer_File), 0)
#1 phar:///usr/local/bin/phpcs/CodeSniffer.php(1894): PHP_CodeSniffer_File->start(NULL)
#2 phar:///usr/local/bin/phpcs/CodeSniffer.php(1772): PHP_CodeSniffer->_processFile('/Users/grayloon...', NULL)
#3 phar:///usr/local/bin/phpcs/CodeSniffer.php(653): PHP_CodeSniffer->processFile('/Users/grayloon...', NULL)
#4 phar:///usr/local/bin/phpcs/CodeSniffer/CLI.php(998): PHP_CodeSniffer->processFiles(Array, false)
#5 phar:///usr/local/bin/phpcs/CodeSniffer/CLI.php(113): PHP_CodeSniffer_CLI->process()
#6 /usr/local/bin/phpcs(6): PHP_CodeSniffer_CLI->runphpcs()
#7 {main}
  thrown in /Users/grayloon/.composer/vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/InfoFiles/AutoAddedKeysSniff.php on line 54

Running composer global require symfony/yaml has not helped.

pfrenssen’s picture

Status: Active » Postponed (maintainer needs more info)

Please verify your installation. We have the Yaml library listed as a required dependency in composer.json so if it is missing you need to make sure it is installed correctly. Also check if any errors might have been output during the installation.

xpersonas’s picture

Everything seems ok. Let me add my composer contents. Maybe something is off I don't realize, but like I said "DrupalPractice" works fine. Maybe you'll recognize something off with how I'm trying to do this.

{
    "name": "home/.composer",
    "authors": [
        {
            "name": "xpersonas",
            "email": "justin.neel@gmail.com"
        }
    ],
    "require": {
        "symfony/yaml": "~3.0",
        "drupal/coder": "^8.2",
        "dealerdirect/phpcodesniffer-composer-installer": "^0.4.4",
        "squizlabs/php_codesniffer": "2.8.1",
        "drush/drush": "~8.0"
    }
}
{
    "_readme": [
        "This file locks the dependencies of your project to a known state",
        "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
        "This file is @generated automatically"
    ],
    "content-hash": "db6cdf4943a508147b487752833b2f03",
    "packages": [
        {
            "name": "consolidation/annotated-command",
            "version": "2.8.2",
            "source": {
                "type": "git",
                "url": "https://github.com/consolidation/annotated-command.git",
                "reference": "e97c38717eae23a2bafcf3f09438290eee6ebeb4"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/consolidation/annotated-command/zipball/e97c38717eae23a2bafcf3f09438290eee6ebeb4",
                "reference": "e97c38717eae23a2bafcf3f09438290eee6ebeb4",
                "shasum": ""
            },
            "require": {
                "consolidation/output-formatters": "^3.1.12",
                "php": ">=5.4.0",
                "psr/log": "^1",
                "symfony/console": "^2.8|^3|^4",
                "symfony/event-dispatcher": "^2.5|^3|^4",
                "symfony/finder": "^2.5|^3|^4"
            },
            "require-dev": {
                "phpunit/phpunit": "^4.8",
                "satooshi/php-coveralls": "^1.0.2 | dev-master",
                "squizlabs/php_codesniffer": "^2.7"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "2.x-dev"
                }
            },
            "autoload": {
                "psr-4": {
                    "Consolidation\\AnnotatedCommand\\": "src"
                }
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Greg Anderson",
                    "email": "greg.1.anderson@greenknowe.org"
                }
            ],
            "description": "Initialize Symfony Console commands from annotated command class methods.",
            "time": "2017-11-29T16:23:23+00:00"
        },
        {
            "name": "consolidation/output-formatters",
            "version": "3.1.13",
            "source": {
                "type": "git",
                "url": "https://github.com/consolidation/output-formatters.git",
                "reference": "3188461e965b32148c8fb85261833b2b72d34b8c"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/consolidation/output-formatters/zipball/3188461e965b32148c8fb85261833b2b72d34b8c",
                "reference": "3188461e965b32148c8fb85261833b2b72d34b8c",
                "shasum": ""
            },
            "require": {
                "php": ">=5.4.0",
                "symfony/console": "^2.8|^3|^4",
                "symfony/finder": "^2.5|^3|^4"
            },
            "require-dev": {
                "phpunit/phpunit": "^4.8",
                "satooshi/php-coveralls": "^1.0.2 | dev-master",
                "squizlabs/php_codesniffer": "^2.7",
                "victorjonsson/markdowndocs": "^1.3"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "3.x-dev"
                }
            },
            "autoload": {
                "psr-4": {
                    "Consolidation\\OutputFormatters\\": "src"
                }
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Greg Anderson",
                    "email": "greg.1.anderson@greenknowe.org"
                }
            ],
            "description": "Format text by applying transformations provided by plug-in formatters.",
            "time": "2017-11-29T15:25:38+00:00"
        },
        {
            "name": "dealerdirect/phpcodesniffer-composer-installer",
            "version": "v0.4.4",
            "source": {
                "type": "git",
                "url": "https://github.com/Dealerdirect/phpcodesniffer-composer-installer.git",
                "reference": "2e41850d5f7797cbb1af7b030d245b3b24e63a08"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/Dealerdirect/phpcodesniffer-composer-installer/zipball/2e41850d5f7797cbb1af7b030d245b3b24e63a08",
                "reference": "2e41850d5f7797cbb1af7b030d245b3b24e63a08",
                "shasum": ""
            },
            "require": {
                "composer-plugin-api": "^1.0",
                "php": "^5.3|^7",
                "squizlabs/php_codesniffer": "*"
            },
            "require-dev": {
                "composer/composer": "*",
                "wimg/php-compatibility": "^8.0"
            },
            "suggest": {
                "dealerdirect/qa-tools": "All the PHP QA tools you'll need"
            },
            "type": "composer-plugin",
            "extra": {
                "class": "Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin"
            },
            "autoload": {
                "psr-4": {
                    "Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\": "src/"
                }
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Franck Nijhof",
                    "email": "f.nijhof@dealerdirect.nl",
                    "homepage": "http://workingatdealerdirect.eu",
                    "role": "Developer"
                }
            ],
            "description": "PHP_CodeSniffer Standards Composer Installer Plugin",
            "homepage": "http://workingatdealerdirect.eu",
            "keywords": [
                "PHPCodeSniffer",
                "PHP_CodeSniffer",
                "code quality",
                "codesniffer",
                "composer",
                "installer",
                "phpcs",
                "plugin",
                "qa",
                "quality",
                "standard",
                "standards",
                "style guide",
                "stylecheck",
                "tests"
            ],
            "time": "2017-12-06T16:27:17+00:00"
        },
        {
            "name": "dnoegel/php-xdg-base-dir",
            "version": "0.1",
            "source": {
                "type": "git",
                "url": "https://github.com/dnoegel/php-xdg-base-dir.git",
                "reference": "265b8593498b997dc2d31e75b89f053b5cc9621a"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/dnoegel/php-xdg-base-dir/zipball/265b8593498b997dc2d31e75b89f053b5cc9621a",
                "reference": "265b8593498b997dc2d31e75b89f053b5cc9621a",
                "shasum": ""
            },
            "require": {
                "php": ">=5.3.2"
            },
            "require-dev": {
                "phpunit/phpunit": "@stable"
            },
            "type": "project",
            "autoload": {
                "psr-4": {
                    "XdgBaseDir\\": "src/"
                }
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "description": "implementation of xdg base directory specification for php",
            "time": "2014-10-24T07:27:01+00:00"
        },
        {
            "name": "drupal/coder",
            "version": "8.2.12",
            "source": {
                "type": "git",
                "url": "https://git.drupal.org/project/coder.git",
                "reference": "984c54a7b1e8f27ff1c32348df69712afd86b17f"
            },
            "require": {
                "ext-mbstring": "*",
                "php": ">=5.4.0",
                "squizlabs/php_codesniffer": ">=2.8.1 <3.0",
                "symfony/yaml": ">=2.0.0"
            },
            "require-dev": {
                "phpunit/phpunit": ">=3.7 <6"
            },
            "type": "phpcodesniffer-standard",
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "GPL-2.0+"
            ],
            "description": "Coder is a library to review Drupal code.",
            "homepage": "https://www.drupal.org/project/coder",
            "keywords": [
                "code review",
                "phpcs",
                "standards"
            ],
            "time": "2017-03-18T10:28:49+00:00"
        },
        {
            "name": "drush/drush",
            "version": "8.1.16",
            "source": {
                "type": "git",
                "url": "https://github.com/drush-ops/drush.git",
                "reference": "bbaff2dc725a5f3eb22006c5de3dc92a2de54b08"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/drush-ops/drush/zipball/bbaff2dc725a5f3eb22006c5de3dc92a2de54b08",
                "reference": "bbaff2dc725a5f3eb22006c5de3dc92a2de54b08",
                "shasum": ""
            },
            "require": {
                "consolidation/annotated-command": "^2.8.1",
                "consolidation/output-formatters": "~3",
                "pear/console_table": "~1.3.1",
                "php": ">=5.4.5",
                "psr/log": "~1.0",
                "psy/psysh": "~0.6",
                "symfony/console": "~2.7|^3",
                "symfony/event-dispatcher": "~2.7|^3",
                "symfony/finder": "~2.7|^3",
                "symfony/var-dumper": "~2.7|^3",
                "symfony/yaml": "~2.3|^3",
                "webmozart/path-util": "~2"
            },
            "require-dev": {
                "phpunit/phpunit": "4.*",
                "symfony/console": "~2.7",
                "symfony/event-dispatcher": "~2.7",
                "symfony/finder": "~2.7",
                "symfony/process": "2.7.*",
                "symfony/var-dumper": "~2.7",
                "symfony/yaml": "~2.3"
            },
            "suggest": {
                "drush/config-extra": "Provides configuration workflow commands, such as config-merge.",
                "ext-pcntl": "*"
            },
            "bin": [
                "drush",
                "drush.launcher",
                "drush.php",
                "drush.complete.sh"
            ],
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "8.0.x-dev"
                }
            },
            "autoload": {
                "psr-0": {
                    "Drush": "lib/",
                    "Consolidation": "lib/"
                }
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "GPL-2.0-or-later"
            ],
            "authors": [
                {
                    "name": "Moshe Weitzman",
                    "email": "weitzman@tejasa.com"
                },
                {
                    "name": "Owen Barton",
                    "email": "drupal@owenbarton.com"
                },
                {
                    "name": "Mark Sonnabaum",
                    "email": "marksonnabaum@gmail.com"
                },
                {
                    "name": "Antoine Beaupré",
                    "email": "anarcat@koumbit.org"
                },
                {
                    "name": "Greg Anderson",
                    "email": "greg.1.anderson@greenknowe.org"
                },
                {
                    "name": "Jonathan Araña Cruz",
                    "email": "jonhattan@faita.net"
                },
                {
                    "name": "Jonathan Hedstrom",
                    "email": "jhedstrom@gmail.com"
                },
                {
                    "name": "Christopher Gervais",
                    "email": "chris@ergonlogic.com"
                },
                {
                    "name": "Dave Reid",
                    "email": "dave@davereid.net"
                },
                {
                    "name": "Damian Lee",
                    "email": "damiankloip@googlemail.com"
                }
            ],
            "description": "Drush is a command line shell and scripting interface for Drupal, a veritable Swiss Army knife designed to make life easier for those of us who spend some of our working hours hacking away at the command prompt.",
            "homepage": "http://www.drush.org",
            "time": "2018-02-06T21:18:48+00:00"
        },
        {
            "name": "jakub-onderka/php-console-color",
            "version": "0.1",
            "source": {
                "type": "git",
                "url": "https://github.com/JakubOnderka/PHP-Console-Color.git",
                "reference": "e0b393dacf7703fc36a4efc3df1435485197e6c1"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/JakubOnderka/PHP-Console-Color/zipball/e0b393dacf7703fc36a4efc3df1435485197e6c1",
                "reference": "e0b393dacf7703fc36a4efc3df1435485197e6c1",
                "shasum": ""
            },
            "require": {
                "php": ">=5.3.2"
            },
            "require-dev": {
                "jakub-onderka/php-code-style": "1.0",
                "jakub-onderka/php-parallel-lint": "0.*",
                "jakub-onderka/php-var-dump-check": "0.*",
                "phpunit/phpunit": "3.7.*",
                "squizlabs/php_codesniffer": "1.*"
            },
            "type": "library",
            "autoload": {
                "psr-0": {
                    "JakubOnderka\\PhpConsoleColor": "src/"
                }
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "BSD-2-Clause"
            ],
            "authors": [
                {
                    "name": "Jakub Onderka",
                    "email": "jakub.onderka@gmail.com",
                    "homepage": "http://www.acci.cz"
                }
            ],
            "time": "2014-04-08T15:00:19+00:00"
        },
        {
            "name": "jakub-onderka/php-console-highlighter",
            "version": "v0.3.2",
            "source": {
                "type": "git",
                "url": "https://github.com/JakubOnderka/PHP-Console-Highlighter.git",
                "reference": "7daa75df45242c8d5b75a22c00a201e7954e4fb5"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/JakubOnderka/PHP-Console-Highlighter/zipball/7daa75df45242c8d5b75a22c00a201e7954e4fb5",
                "reference": "7daa75df45242c8d5b75a22c00a201e7954e4fb5",
                "shasum": ""
            },
            "require": {
                "jakub-onderka/php-console-color": "~0.1",
                "php": ">=5.3.0"
            },
            "require-dev": {
                "jakub-onderka/php-code-style": "~1.0",
                "jakub-onderka/php-parallel-lint": "~0.5",
                "jakub-onderka/php-var-dump-check": "~0.1",
                "phpunit/phpunit": "~4.0",
                "squizlabs/php_codesniffer": "~1.5"
            },
            "type": "library",
            "autoload": {
                "psr-0": {
                    "JakubOnderka\\PhpConsoleHighlighter": "src/"
                }
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Jakub Onderka",
                    "email": "acci@acci.cz",
                    "homepage": "http://www.acci.cz/"
                }
            ],
            "time": "2015-04-20T18:58:01+00:00"
        },
        {
            "name": "nikic/php-parser",
            "version": "v3.1.4",
            "source": {
                "type": "git",
                "url": "https://github.com/nikic/PHP-Parser.git",
                "reference": "e57b3a09784f846411aa7ed664eedb73e3399078"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/e57b3a09784f846411aa7ed664eedb73e3399078",
                "reference": "e57b3a09784f846411aa7ed664eedb73e3399078",
                "shasum": ""
            },
            "require": {
                "ext-tokenizer": "*",
                "php": ">=5.5"
            },
            "require-dev": {
                "phpunit/phpunit": "~4.0|~5.0"
            },
            "bin": [
                "bin/php-parse"
            ],
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "3.0-dev"
                }
            },
            "autoload": {
                "psr-4": {
                    "PhpParser\\": "lib/PhpParser"
                }
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "BSD-3-Clause"
            ],
            "authors": [
                {
                    "name": "Nikita Popov"
                }
            ],
            "description": "A PHP parser written in PHP",
            "keywords": [
                "parser",
                "php"
            ],
            "time": "2018-01-25T21:31:33+00:00"
        },
        {
            "name": "pear/console_table",
            "version": "v1.3.1",
            "source": {
                "type": "git",
                "url": "https://github.com/pear/Console_Table.git",
                "reference": "1930c11897ca61fd24b95f2f785e99e0f36dcdea"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/pear/Console_Table/zipball/1930c11897ca61fd24b95f2f785e99e0f36dcdea",
                "reference": "1930c11897ca61fd24b95f2f785e99e0f36dcdea",
                "shasum": ""
            },
            "require": {
                "php": ">=5.2.0"
            },
            "suggest": {
                "pear/Console_Color2": ">=0.1.2"
            },
            "type": "library",
            "autoload": {
                "classmap": [
                    "Table.php"
                ]
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "BSD-2-Clause"
            ],
            "authors": [
                {
                    "name": "Jan Schneider",
                    "homepage": "http://pear.php.net/user/yunosh"
                },
                {
                    "name": "Tal Peer",
                    "homepage": "http://pear.php.net/user/tal"
                },
                {
                    "name": "Xavier Noguer",
                    "homepage": "http://pear.php.net/user/xnoguer"
                },
                {
                    "name": "Richard Heyes",
                    "homepage": "http://pear.php.net/user/richard"
                }
            ],
            "description": "Library that makes it easy to build console style tables.",
            "homepage": "http://pear.php.net/package/Console_Table/",
            "keywords": [
                "console"
            ],
            "time": "2018-01-25T20:47:17+00:00"
        },
        {
            "name": "psr/log",
            "version": "1.0.2",
            "source": {
                "type": "git",
                "url": "https://github.com/php-fig/log.git",
                "reference": "4ebe3a8bf773a19edfe0a84b6585ba3d401b724d"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/php-fig/log/zipball/4ebe3a8bf773a19edfe0a84b6585ba3d401b724d",
                "reference": "4ebe3a8bf773a19edfe0a84b6585ba3d401b724d",
                "shasum": ""
            },
            "require": {
                "php": ">=5.3.0"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "1.0.x-dev"
                }
            },
            "autoload": {
                "psr-4": {
                    "Psr\\Log\\": "Psr/Log/"
                }
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "PHP-FIG",
                    "homepage": "http://www.php-fig.org/"
                }
            ],
            "description": "Common interface for logging libraries",
            "homepage": "https://github.com/php-fig/log",
            "keywords": [
                "log",
                "psr",
                "psr-3"
            ],
            "time": "2016-10-10T12:19:37+00:00"
        },
        {
            "name": "psy/psysh",
            "version": "v0.8.17",
            "source": {
                "type": "git",
                "url": "https://github.com/bobthecow/psysh.git",
                "reference": "5069b70e8c4ea492c2b5939b6eddc78bfe41cfec"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/bobthecow/psysh/zipball/5069b70e8c4ea492c2b5939b6eddc78bfe41cfec",
                "reference": "5069b70e8c4ea492c2b5939b6eddc78bfe41cfec",
                "shasum": ""
            },
            "require": {
                "dnoegel/php-xdg-base-dir": "0.1",
                "jakub-onderka/php-console-highlighter": "0.3.*",
                "nikic/php-parser": "~1.3|~2.0|~3.0",
                "php": ">=5.3.9",
                "symfony/console": "~2.3.10|^2.4.2|~3.0|~4.0",
                "symfony/var-dumper": "~2.7|~3.0|~4.0"
            },
            "require-dev": {
                "hoa/console": "~3.16|~1.14",
                "phpunit/phpunit": "^4.8.35|^5.4.3",
                "symfony/finder": "~2.1|~3.0|~4.0"
            },
            "suggest": {
                "ext-pcntl": "Enabling the PCNTL extension makes PsySH a lot happier :)",
                "ext-pdo-sqlite": "The doc command requires SQLite to work.",
                "ext-posix": "If you have PCNTL, you'll want the POSIX extension as well.",
                "ext-readline": "Enables support for arrow-key history navigation, and showing and manipulating command history.",
                "hoa/console": "A pure PHP readline implementation. You'll want this if your PHP install doesn't already support readline or libedit."
            },
            "bin": [
                "bin/psysh"
            ],
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-develop": "0.8.x-dev"
                }
            },
            "autoload": {
                "files": [
                    "src/Psy/functions.php"
                ],
                "psr-4": {
                    "Psy\\": "src/Psy/"
                }
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Justin Hileman",
                    "email": "justin@justinhileman.info",
                    "homepage": "http://justinhileman.com"
                }
            ],
            "description": "An interactive shell for modern PHP.",
            "homepage": "http://psysh.org",
            "keywords": [
                "REPL",
                "console",
                "interactive",
                "shell"
            ],
            "time": "2017-12-28T16:14:16+00:00"
        },
        {
            "name": "squizlabs/php_codesniffer",
            "version": "2.8.1",
            "source": {
                "type": "git",
                "url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
                "reference": "d7cf0d894e8aa4c73712ee4a331cc1eaa37cdc7d"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/d7cf0d894e8aa4c73712ee4a331cc1eaa37cdc7d",
                "reference": "d7cf0d894e8aa4c73712ee4a331cc1eaa37cdc7d",
                "shasum": ""
            },
            "require": {
                "ext-simplexml": "*",
                "ext-tokenizer": "*",
                "ext-xmlwriter": "*",
                "php": ">=5.1.2"
            },
            "require-dev": {
                "phpunit/phpunit": "~4.0"
            },
            "bin": [
                "scripts/phpcs",
                "scripts/phpcbf"
            ],
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "2.x-dev"
                }
            },
            "autoload": {
                "classmap": [
                    "CodeSniffer.php",
                    "CodeSniffer/CLI.php",
                    "CodeSniffer/Exception.php",
                    "CodeSniffer/File.php",
                    "CodeSniffer/Fixer.php",
                    "CodeSniffer/Report.php",
                    "CodeSniffer/Reporting.php",
                    "CodeSniffer/Sniff.php",
                    "CodeSniffer/Tokens.php",
                    "CodeSniffer/Reports/",
                    "CodeSniffer/Tokenizers/",
                    "CodeSniffer/DocGenerators/",
                    "CodeSniffer/Standards/AbstractPatternSniff.php",
                    "CodeSniffer/Standards/AbstractScopeSniff.php",
                    "CodeSniffer/Standards/AbstractVariableSniff.php",
                    "CodeSniffer/Standards/IncorrectPatternException.php",
                    "CodeSniffer/Standards/Generic/Sniffs/",
                    "CodeSniffer/Standards/MySource/Sniffs/",
                    "CodeSniffer/Standards/PEAR/Sniffs/",
                    "CodeSniffer/Standards/PSR1/Sniffs/",
                    "CodeSniffer/Standards/PSR2/Sniffs/",
                    "CodeSniffer/Standards/Squiz/Sniffs/",
                    "CodeSniffer/Standards/Zend/Sniffs/"
                ]
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "BSD-3-Clause"
            ],
            "authors": [
                {
                    "name": "Greg Sherwood",
                    "role": "lead"
                }
            ],
            "description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.",
            "homepage": "http://www.squizlabs.com/php-codesniffer",
            "keywords": [
                "phpcs",
                "standards"
            ],
            "time": "2017-03-01T22:17:45+00:00"
        },
        {
            "name": "symfony/console",
            "version": "v3.4.4",
            "source": {
                "type": "git",
                "url": "https://github.com/symfony/console.git",
                "reference": "26b6f419edda16c19775211987651cb27baea7f1"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/symfony/console/zipball/26b6f419edda16c19775211987651cb27baea7f1",
                "reference": "26b6f419edda16c19775211987651cb27baea7f1",
                "shasum": ""
            },
            "require": {
                "php": "^5.5.9|>=7.0.8",
                "symfony/debug": "~2.8|~3.0|~4.0",
                "symfony/polyfill-mbstring": "~1.0"
            },
            "conflict": {
                "symfony/dependency-injection": "<3.4",
                "symfony/process": "<3.3"
            },
            "require-dev": {
                "psr/log": "~1.0",
                "symfony/config": "~3.3|~4.0",
                "symfony/dependency-injection": "~3.4|~4.0",
                "symfony/event-dispatcher": "~2.8|~3.0|~4.0",
                "symfony/lock": "~3.4|~4.0",
                "symfony/process": "~3.3|~4.0"
            },
            "suggest": {
                "psr/log": "For using the console logger",
                "symfony/event-dispatcher": "",
                "symfony/lock": "",
                "symfony/process": ""
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "3.4-dev"
                }
            },
            "autoload": {
                "psr-4": {
                    "Symfony\\Component\\Console\\": ""
                },
                "exclude-from-classmap": [
                    "/Tests/"
                ]
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Fabien Potencier",
                    "email": "fabien@symfony.com"
                },
                {
                    "name": "Symfony Community",
                    "homepage": "https://symfony.com/contributors"
                }
            ],
            "description": "Symfony Console Component",
            "homepage": "https://symfony.com",
            "time": "2018-01-29T09:03:43+00:00"
        },
        {
            "name": "symfony/debug",
            "version": "v4.0.4",
            "source": {
                "type": "git",
                "url": "https://github.com/symfony/debug.git",
                "reference": "c77bb31d0f6310a2ac11e657475d396a92e5dc54"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/symfony/debug/zipball/c77bb31d0f6310a2ac11e657475d396a92e5dc54",
                "reference": "c77bb31d0f6310a2ac11e657475d396a92e5dc54",
                "shasum": ""
            },
            "require": {
                "php": "^7.1.3",
                "psr/log": "~1.0"
            },
            "conflict": {
                "symfony/http-kernel": "<3.4"
            },
            "require-dev": {
                "symfony/http-kernel": "~3.4|~4.0"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "4.0-dev"
                }
            },
            "autoload": {
                "psr-4": {
                    "Symfony\\Component\\Debug\\": ""
                },
                "exclude-from-classmap": [
                    "/Tests/"
                ]
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Fabien Potencier",
                    "email": "fabien@symfony.com"
                },
                {
                    "name": "Symfony Community",
                    "homepage": "https://symfony.com/contributors"
                }
            ],
            "description": "Symfony Debug Component",
            "homepage": "https://symfony.com",
            "time": "2018-01-18T22:19:33+00:00"
        },
        {
            "name": "symfony/event-dispatcher",
            "version": "v3.4.4",
            "source": {
                "type": "git",
                "url": "https://github.com/symfony/event-dispatcher.git",
                "reference": "26b87b6bca8f8f797331a30b76fdae5342dc26ca"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/26b87b6bca8f8f797331a30b76fdae5342dc26ca",
                "reference": "26b87b6bca8f8f797331a30b76fdae5342dc26ca",
                "shasum": ""
            },
            "require": {
                "php": "^5.5.9|>=7.0.8"
            },
            "conflict": {
                "symfony/dependency-injection": "<3.3"
            },
            "require-dev": {
                "psr/log": "~1.0",
                "symfony/config": "~2.8|~3.0|~4.0",
                "symfony/dependency-injection": "~3.3|~4.0",
                "symfony/expression-language": "~2.8|~3.0|~4.0",
                "symfony/stopwatch": "~2.8|~3.0|~4.0"
            },
            "suggest": {
                "symfony/dependency-injection": "",
                "symfony/http-kernel": ""
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "3.4-dev"
                }
            },
            "autoload": {
                "psr-4": {
                    "Symfony\\Component\\EventDispatcher\\": ""
                },
                "exclude-from-classmap": [
                    "/Tests/"
                ]
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Fabien Potencier",
                    "email": "fabien@symfony.com"
                },
                {
                    "name": "Symfony Community",
                    "homepage": "https://symfony.com/contributors"
                }
            ],
            "description": "Symfony EventDispatcher Component",
            "homepage": "https://symfony.com",
            "time": "2018-01-03T07:37:34+00:00"
        },
        {
            "name": "symfony/finder",
            "version": "v3.4.4",
            "source": {
                "type": "git",
                "url": "https://github.com/symfony/finder.git",
                "reference": "613e26310776f49a1773b6737c6bd554b8bc8c6f"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/symfony/finder/zipball/613e26310776f49a1773b6737c6bd554b8bc8c6f",
                "reference": "613e26310776f49a1773b6737c6bd554b8bc8c6f",
                "shasum": ""
            },
            "require": {
                "php": "^5.5.9|>=7.0.8"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "3.4-dev"
                }
            },
            "autoload": {
                "psr-4": {
                    "Symfony\\Component\\Finder\\": ""
                },
                "exclude-from-classmap": [
                    "/Tests/"
                ]
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Fabien Potencier",
                    "email": "fabien@symfony.com"
                },
                {
                    "name": "Symfony Community",
                    "homepage": "https://symfony.com/contributors"
                }
            ],
            "description": "Symfony Finder Component",
            "homepage": "https://symfony.com",
            "time": "2018-01-03T07:37:34+00:00"
        },
        {
            "name": "symfony/polyfill-mbstring",
            "version": "v1.7.0",
            "source": {
                "type": "git",
                "url": "https://github.com/symfony/polyfill-mbstring.git",
                "reference": "78be803ce01e55d3491c1397cf1c64beb9c1b63b"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/78be803ce01e55d3491c1397cf1c64beb9c1b63b",
                "reference": "78be803ce01e55d3491c1397cf1c64beb9c1b63b",
                "shasum": ""
            },
            "require": {
                "php": ">=5.3.3"
            },
            "suggest": {
                "ext-mbstring": "For best performance"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "1.7-dev"
                }
            },
            "autoload": {
                "psr-4": {
                    "Symfony\\Polyfill\\Mbstring\\": ""
                },
                "files": [
                    "bootstrap.php"
                ]
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Nicolas Grekas",
                    "email": "p@tchwork.com"
                },
                {
                    "name": "Symfony Community",
                    "homepage": "https://symfony.com/contributors"
                }
            ],
            "description": "Symfony polyfill for the Mbstring extension",
            "homepage": "https://symfony.com",
            "keywords": [
                "compatibility",
                "mbstring",
                "polyfill",
                "portable",
                "shim"
            ],
            "time": "2018-01-30T19:27:44+00:00"
        },
        {
            "name": "symfony/var-dumper",
            "version": "v3.4.4",
            "source": {
                "type": "git",
                "url": "https://github.com/symfony/var-dumper.git",
                "reference": "472a9849930cf21f73abdb02240f17cf5b5bd1a7"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/symfony/var-dumper/zipball/472a9849930cf21f73abdb02240f17cf5b5bd1a7",
                "reference": "472a9849930cf21f73abdb02240f17cf5b5bd1a7",
                "shasum": ""
            },
            "require": {
                "php": "^5.5.9|>=7.0.8",
                "symfony/polyfill-mbstring": "~1.0"
            },
            "conflict": {
                "phpunit/phpunit": "<4.8.35|<5.4.3,>=5.0"
            },
            "require-dev": {
                "ext-iconv": "*",
                "twig/twig": "~1.34|~2.4"
            },
            "suggest": {
                "ext-iconv": "To convert non-UTF-8 strings to UTF-8 (or symfony/polyfill-iconv in case ext-iconv cannot be used).",
                "ext-intl": "To show region name in time zone dump",
                "ext-symfony_debug": ""
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "3.4-dev"
                }
            },
            "autoload": {
                "files": [
                    "Resources/functions/dump.php"
                ],
                "psr-4": {
                    "Symfony\\Component\\VarDumper\\": ""
                },
                "exclude-from-classmap": [
                    "/Tests/"
                ]
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Nicolas Grekas",
                    "email": "p@tchwork.com"
                },
                {
                    "name": "Symfony Community",
                    "homepage": "https://symfony.com/contributors"
                }
            ],
            "description": "Symfony mechanism for exploring and dumping PHP variables",
            "homepage": "https://symfony.com",
            "keywords": [
                "debug",
                "dump"
            ],
            "time": "2018-01-29T09:03:43+00:00"
        },
        {
            "name": "symfony/yaml",
            "version": "v3.4.4",
            "source": {
                "type": "git",
                "url": "https://github.com/symfony/yaml.git",
                "reference": "eab73b6c21d27ae4cd037c417618dfd4befb0bfe"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/symfony/yaml/zipball/eab73b6c21d27ae4cd037c417618dfd4befb0bfe",
                "reference": "eab73b6c21d27ae4cd037c417618dfd4befb0bfe",
                "shasum": ""
            },
            "require": {
                "php": "^5.5.9|>=7.0.8"
            },
            "conflict": {
                "symfony/console": "<3.4"
            },
            "require-dev": {
                "symfony/console": "~3.4|~4.0"
            },
            "suggest": {
                "symfony/console": "For validating YAML files using the lint command"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "3.4-dev"
                }
            },
            "autoload": {
                "psr-4": {
                    "Symfony\\Component\\Yaml\\": ""
                },
                "exclude-from-classmap": [
                    "/Tests/"
                ]
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Fabien Potencier",
                    "email": "fabien@symfony.com"
                },
                {
                    "name": "Symfony Community",
                    "homepage": "https://symfony.com/contributors"
                }
            ],
            "description": "Symfony Yaml Component",
            "homepage": "https://symfony.com",
            "time": "2018-01-21T19:05:02+00:00"
        },
        {
            "name": "webmozart/assert",
            "version": "1.3.0",
            "source": {
                "type": "git",
                "url": "https://github.com/webmozart/assert.git",
                "reference": "0df1908962e7a3071564e857d86874dad1ef204a"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/webmozart/assert/zipball/0df1908962e7a3071564e857d86874dad1ef204a",
                "reference": "0df1908962e7a3071564e857d86874dad1ef204a",
                "shasum": ""
            },
            "require": {
                "php": "^5.3.3 || ^7.0"
            },
            "require-dev": {
                "phpunit/phpunit": "^4.6",
                "sebastian/version": "^1.0.1"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "1.3-dev"
                }
            },
            "autoload": {
                "psr-4": {
                    "Webmozart\\Assert\\": "src/"
                }
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Bernhard Schussek",
                    "email": "bschussek@gmail.com"
                }
            ],
            "description": "Assertions to validate method input/output with nice error messages.",
            "keywords": [
                "assert",
                "check",
                "validate"
            ],
            "time": "2018-01-29T19:49:41+00:00"
        },
        {
            "name": "webmozart/path-util",
            "version": "2.3.0",
            "source": {
                "type": "git",
                "url": "https://github.com/webmozart/path-util.git",
                "reference": "d939f7edc24c9a1bb9c0dee5cb05d8e859490725"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/webmozart/path-util/zipball/d939f7edc24c9a1bb9c0dee5cb05d8e859490725",
                "reference": "d939f7edc24c9a1bb9c0dee5cb05d8e859490725",
                "shasum": ""
            },
            "require": {
                "php": ">=5.3.3",
                "webmozart/assert": "~1.0"
            },
            "require-dev": {
                "phpunit/phpunit": "^4.6",
                "sebastian/version": "^1.0.1"
            },
            "type": "library",
            "extra": {
                "branch-alias": {
                    "dev-master": "2.3-dev"
                }
            },
            "autoload": {
                "psr-4": {
                    "Webmozart\\PathUtil\\": "src/"
                }
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Bernhard Schussek",
                    "email": "bschussek@gmail.com"
                }
            ],
            "description": "A robust cross-platform utility for normalizing, comparing and modifying file paths.",
            "time": "2015-12-17T08:42:14+00:00"
        }
    ],
    "packages-dev": [],
    "aliases": [],
    "minimum-stability": "stable",
    "stability-flags": [],
    "prefer-stable": false,
    "prefer-lowest": false,
    "platform": [],
    "platform-dev": []
}

And vendor directory...

autoload.php
bin/
composer/
consolidation/
dealerdirect/
dnoegel/
drupal/
drush/
jakub-onderka/
nikic/
pear/
psr/
psy/
squizlabs/
symfony/
webmozart/
pfrenssen’s picture

The files you provide look fine to me. The composer.json file contains the reference to symfony/yaml but this is not strictly required, it is normally inherited from Coder. But it 100% fine to put it there and you are expected to do it if you use the Yaml component in your own code.

The composer.lock also looks fine. It contains a reference to symfony/yaml version 3.4.4. I verified this particular release and the file is there and has the correct namespace (ref. v3.4.4/Yaml.php).

I noticed that we have very few instances of calling directly into namespaced code, in fact at first glance it seems that this is the only instance. So I have tried it locally in a fresh installation of my project (ref. https://github.com/ec-europa/joinup-dev):

$ ./vendor/bin/phpcs web/modules/custom/*/*.info.yml
.................................

Time: 93ms; Memory: 4Mb

To be 100% sure that this code is actually running as expected I edited the file AutoAddedKeysSniff.php and changed the line that calls into namespace to something invalid. It fails as expected:

$ ./vendor/bin/phpcs web/modules/custom/*/*.info.yml
PHP Fatal error:  Uncaught Error: Class 'Symfony\Component\Yaml\NonExistingNamespace' not found in /home/pieter/v/joinup/vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/InfoFiles/AutoAddedKeysSniff.php:54
Stack trace:
#0 /home/pieter/v/joinup/vendor/squizlabs/php_codesniffer/CodeSniffer/File.php(576): Drupal_Sniffs_InfoFiles_AutoAddedKeysSniff->process(Object(PHP_CodeSniffer_File), 0)
#1 /home/pieter/v/joinup/vendor/squizlabs/php_codesniffer/CodeSniffer.php(1894): PHP_CodeSniffer_File->start(NULL)
#2 /home/pieter/v/joinup/vendor/squizlabs/php_codesniffer/CodeSniffer.php(1772): PHP_CodeSniffer->_processFile('/home/pieter/v/...', NULL)
#3 /home/pieter/v/joinup/vendor/squizlabs/php_codesniffer/CodeSniffer.php(653): PHP_CodeSniffer->processFile('/home/pieter/v/...', NULL)
#4 /home/pieter/v/joinup/vendor/squizlabs/php_codesniffer/CodeSniffer/CLI.php(998): PHP_CodeSniffer->processFiles(Array, false)
#5 /home/pieter/v/joinup/vendor/squizlabs/php_codesniffer/CodeSniffer/CLI.php(113): PHP_CodeSniffer_CLI->process()
#6 /home/pieter/v/jo in /home/pieter/v/joinup/vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/InfoFiles/AutoAddedKeysSniff.php on line 54

Can you verify that the symfony/yaml package is present in the vendor file? If it is there, maybe you need to rebuild your autoload files, so maybe you can try to run this command?

$ composer dump-autoload

If this doesn't fix it for you I am not sure how I can help you further. You'll need to start debugging it probably, check why the autoloader is not being loaded, maybe it loads the wrong one?

xpersonas’s picture

Awesome. $ composer dump-autoload did the trick. Thank you so much. That command wasn't on my radar so I hadn't tried that. I'm all good now!

pfrenssen’s picture

Status: Postponed (maintainer needs more info) » Fixed

Wow! Great news! Glad you have it up and running!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

Chi’s picture

This issue occurs when you have phpcs installed globally because in this case phpcs uses its own autoloader instance which is not aware about Coder dependencies.

slivorezka’s picture

So I got the same bug.
And looks like @Chi is right it something wrong with phpcs installation.
And my solution to fix it just replaced in the command phpcs to ~/.composer/vendor/bin/phpcs
For example:
~/.composer/vendor/bin/phpcs --standard=Drupal /path/to/code

psf_’s picture

I have this issue with global installation, but fail DrupalPractice and work Drupal.

Comment #18 work for me, but in my ubuntu the global path is:
~/.config/composer/vendor/bin

My OS version:

Distributor ID:	Ubuntu
Description:	Ubuntu 19.10
Release:	19.10
Codename:	eoan
sgourebi’s picture

sudo ln -s ~/.config/composer/vendor/bin/phpcs /usr/local/bin/phpcs
phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml path/to/module

Meerachandran’s picture

I also have the same problem. Comment #18 worked for me.