Skip to content

Add string delimiter rules #827

@kczx3

Description

@kczx3

Feature

I'd like a rule for enforcing single quoted strings when there are no variable interpolations. I was unable to find a rule that did this in the documentation.

Example

<?php

$thing = "wrong";

$my_var = 'This is correct.';

$interp = "This is not $thing.";

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: EnhancementRequest for additions or changes that improve existing functionality.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions