It is not recommend to use PHP's short opening tag <?, better use <?php, or <?= in case of outputting.
Short opening tags are disabled in PHP’s default configuration. In such a case,
all content of this file is output verbatim to the browser without being parsed,
or executed.
As a precaution to avoid these problems better use the long opening tag <?php.
Loading history...
2
3
namespace Funivan\Cs\Tools\Php\LineAfterOpenTag;
4
5
use Funivan\PhpTokenizer\Token;
6
7
/**
8
*
9
*/
10
class LineTokenData {
11
12
/**
13
* @var int
14
*/
15
private $linesNum;
16
17
/**
18
* @var Token
19
*/
20
private $token;
21
22
/**
23
* @var Token
24
*/
25
private $whitespace;
26
27
28
/**
29
* @param int $linesNum
30
* @param Token $token
31
* @param Token $whitespace
32
*/
33
public function __construct($linesNum, Token $token, Token $whitespace = null) {
34
$this->linesNum = $linesNum;
35
$this->token = $token;
36
$this->whitespace = $whitespace ? $whitespace : new Token();
Short opening tags are disabled in PHP’s default configuration. In such a case, all content of this file is output verbatim to the browser without being parsed, or executed.
As a precaution to avoid these problems better use the long opening tag
<?php
.