Skip to content

Blank lines being removed #1134

@kkmuffme

Description

@kkmuffme

Bug report

Question Answer
PHP-Scoper version 0.18.18 (phar)
PHP version 8.4
Platform with version unix

scoper removes blank lines in all code even in files that are in "excluded-namespaces"

While this usually is not a problem, this results in broken code where whitespace matters, e.g. protobuf or grpc

Additionally, it also alters otherwhitespace unneccessarily, e.g. $foo.'asd' is changed to $foo . 'asd' even in lines where scoper didn't change anything (not 100% sure, but I think this also breaks protobuf stuff, but couldn't really test it since the empty lines already broke it)

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