Skip to content

Version 1.4.0 - Multiline String Concatenation

Compare
Choose a tag to compare
@nubs nubs released this 06 Jan 14:59
· 38 commits to master since this release

This release relaxes the "Unnecessary String Concatenation" sniff when it comes to long lines. It also fixes an issue with class declarations.

Bugs Fixed

Unnecessary String Concatenation

Strings that break the line length limit (144 characters) can now be broken out onto multiple lines. For example, the following is now legal:

$foo = 'really really really really really really really really really really really really really really really really really really really'
    . ' really long line';

Class Declarations

At some point, this part of our standard was not included or got removed. Opening braces for classes must appear on a new line:

// LEGAL
class Foo
{
}

// ILLEGAL
class Bar {
}