Showing 7 of 1,975 result(s)
The document parser diverges from the core Laravel Blade parser in a few areas. These differences make it easier to consume the compiled templates directly or develop tooling to detect invalid PHP output.
Returns the original document text between two character offsets. Argument Description $startOffset The start offset. $endOffset The end offset. 1 <?php 2 3 public function getText ( int $startOffset, 4 int $endOffset) : string ; Example Use 1...
…document at the provided character offset. Argument Description $offset The character offset. $chars A list of characters that won't break a word. 1 <?php 2 3 public function getWordAtOffset ( int $offset, 4 array $chars = [ '-' ]) : string ;...
…ring the word at the provided offset. Argument Description $offset The character offset. $chars A list of characters that won't break a word. 1 <?php 2 3 public function getWordRightAtOffset ( int $offset, 4 array $chars = [ '-' ]) : string ;...
…t was extracted from. Argument Description $lineNumber The target line number. $radius The number of desired lines surrounding the target line number. 1 <?php 2 3 public function getLineExcerpt ( int $lineNumber, 4 int $radius = 2 ) : array ;...
Unlike most node types, updating the properties of HTML fragment nodes is not supported at this time.
Tests if the current error is considered a "fatal" error. Fatal errors are those that are likely to cause issues when compiling the final PHP for a given template. Some parser generated errors are "warnings", and will not be reported as fatal...