Skip to content

CodeSniffer is suffering PHP Fatal errors #23

@Adnan-cds

Description

@Adnan-cds

Test runs are failing due to issues with PHP Code sniffer. It had two releases in the last 4 days and these releases (3.5.7, 3.5.8) are leading to this fatal error. Version 3.5.6 works okay. I am wondering if we need to pin squizlabs/php_codesniffer to 3.5.6.

How to reproduce

$ composer create-project --stability dev localgovdrupal/localgov-project
$ pushd localgov-project
$ ./bin/phpcs # this leads to the PHP fatal error
$ composer require --dev squizlabs/php_codesniffer:3.5.6
$ ./bin/phpcs # This one should be alright
$ echo $?

FAO @stephen-cox @finnlewis

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions