• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

PHPCSStandards / PHP_CodeSniffer / 14349155572
78%
master: 79%

Build:
Build:
LAST BUILD BRANCH: fix/interface-indentation
DEFAULT BRANCH: master
Ran 09 Apr 2025 04:44AM UTC
Jobs 8
Files 263
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

09 Apr 2025 04:43AM UTC coverage: 77.553% (+0.002%) from 77.551%
14349155572

push

github

jrfnl
PHP 7.4 | Tokenizer/PHP: handle PHP tag at end of file consistently

Prior to PHP 7.4, a PHP open tag at the end of a file was not tokenized correctly in PHP itself.

From the PHP 7.4 changelog:
> `<?php` at the end of the file (without trailing newline) will now be
> interpreted as an opening PHP tag. Previously it was interpreted either as
> `<? php` and resulted in a syntax error (with short_open_tag=1) or was
> interpreted as a literal `<?php` string (with short_open_tag=0).

This commit makes the tokenization of PHP open tags at the end of a file consistent in all PHP versions.

Includes tests.
Includes adding a few extra test builds which test with `short_open_tag=On` for various PHP versions.

Refs:
* https://www.php.net/manual/en/migration74.incompatible.php#migration74.incompatible.core.php-tag
* https://github.com/php/php-src/blob/30de357fa/UPGRADING#L37-L40

19 of 24 new or added lines in 1 file covered. (79.17%)

19337 of 24934 relevant lines covered (77.55%)

78.93 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
5
85.93
-0.09% src/Tokenizers/PHP.php
Jobs
ID Job ID Ran Files Coverage
1 os-windows-latest-php-7.2-custom-ini-false - 14349155572.1 09 Apr 2025 04:44AM UTC 263
2.1
GitHub Action Run
2 os-windows-latest-php-8.4-custom-ini-false - 14349155572.2 09 Apr 2025 04:45AM UTC 263
2.64
GitHub Action Run
3 cbf-os-ubuntu-latest-ubuntu-latest-php-8.1-custom-ini-true - 14349155572.3 09 Apr 2025 04:48AM UTC 263
1.89
GitHub Action Run
4 os-ubuntu-latest-php-8.1-custom-ini-true - 14349155572.4 09 Apr 2025 04:48AM UTC 263
76.06
GitHub Action Run
5 cbf-os-ubuntu-latest-ubuntu-latest-php-7.2-custom-ini-false - 14349155572.5 09 Apr 2025 04:50AM UTC 263
0.81
GitHub Action Run
6 os-ubuntu-latest-php-8.4-custom-ini-false - 14349155572.6 09 Apr 2025 04:48AM UTC 263
76.03
GitHub Action Run
7 os-ubuntu-latest-php-7.2-custom-ini-false - 14349155572.7 09 Apr 2025 04:50AM UTC 263
73.89
GitHub Action Run
8 cbf-os-ubuntu-latest-ubuntu-latest-php-8.4-custom-ini-false - 14349155572.8 09 Apr 2025 04:48AM UTC 263
1.88
GitHub Action Run
Source Files on build 14349155572
  • Tree
  • List 263
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #14349155572
  • c2886750 on github
  • Prev Build on 4.0 (#14349056891)
  • Next Build on 4.0 (#14349226593)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc