Skip to content

Commit

Permalink
This should fix it
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfnl committed Oct 31, 2023
1 parent 890cc58 commit 8123a41
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,14 @@ public function getErrorList($testFile='')
public function getWarningList($testFile='')
{
if ($testFile === 'DisallowAlternativePHPTagsUnitTest.3.inc') {
// Check if the Internal.NoCodeFound error can be expected on line 1.
$option = (bool) ini_get('short_open_tag');
$line1 = 1;
if ($option === true) {
$line1 = 0;
}
return [
1 => 1,
1 => $line1,
3 => 1,
4 => 1,
5 => 1,
Expand Down

0 comments on commit 8123a41

Please sign in to comment.