Skip to content

Clean up double lines below the 'casts' stub #520

@benjam-es

Description

@benjam-es

Synopsis:

When editing stubs, my autosave code cleanup spotted (and removed) double lines below the 'casts' declaration. This is caused by preceding each relationship method with PHP_EOL. The first relationship adds PHP_EOL which follows the whitespace at the bottom of the 'casts' stub.

Proposed Syntax:

Simple check, to display PHP_EOL only from the second relationship onward.

Expected Behavior:

When saving and prettifying stubs, they would no longer break the tests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestpendingThis issue is pending review

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions