Skip to content

Files

Latest commit

 

History

History
19 lines (12 loc) · 654 Bytes

PHPCompatibility.Syntax.NewFlexibleHeredocNowdoc.md

File metadata and controls

19 lines (12 loc) · 654 Bytes

Pattern: Use of flexible heredoc/nowdoc

Issue: -

Description

Detect usage of flexible heredoc/nowdoc and related cross-version incompatibilities.

As of PHP 7.3:

  • The body and the closing marker of a heredoc/nowdoc can be indented;
  • The closing marker no longer needs to be on a line by itself;
  • The heredoc/nowdoc body may no longer contain the closing marker at the start of any of its lines.

PHP version 7.3

Further Reading