8000 Problem with CRLF: assert($firstOnLinePointer !== null) fails · Issue #1744 · slevomat/coding-standard · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Problem with CRLF: assert($firstOnLinePointer !== null) fails #1744
Open
@amenk

Description

@amenk

For the record:

I am getting

PHP Fatal error: Uncaught AssertionError: assert($firstOnLinePointer !== null) in /app/vendor/slevomat/coding-standard/SlevomatCodingStandard/Sniffs/Classes/AbstractPropertyConstantAndEnumCaseSpacing.php:67

on a CRLF formatted file

s$ cat -A ProductCustomFields.php | head -n 3
<?php declare(strict_types=1);^M$
^M$
/**^M$

Switching to LF seems to fix the problem.

I want to use LF, so it's all fine. Just adding this for the record and for others who might run into the same issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0