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

PHPCSStandards / PHP_CodeSniffer / 11982940377
78%
master: 79%

Build:
Build:
LAST BUILD BRANCH: feature/parse-error/File.getMethodProperties
DEFAULT BRANCH: master
Ran 23 Nov 2024 01:43AM UTC
Jobs 8
Files 262
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

23 Nov 2024 01:42AM UTC coverage: 76.198% (+0.03%) from 76.17%
11982940377

push

github

jrfnl
Generators HTML/Markdown: consistent encoding cross-PHP

The default value for the `$flags` parameter of the `htmlspecialchars()` function changed in PHP 8.1.0.
Previously, the default was `ENT_COMPAT`. Now the default is `ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401`.

The most notable differences are:
* Single quotes will be encoded.
* Invalid code unit sequences will be replace by a Unicode Replacement Character.

For consistent output cross-version PHP, it is advised to always explicitly pass the `$flags` parameter` and not rely on the default value.

Fixed now and using the _new_ `$flags` default value as the parameter value.

This commit allows for the tests to have the same output expectations cross-version PHP. For end-users, the differences shouldn't have been noticeable.

2 of 2 new or added lines in 2 files covered. (100.0%)

18725 of 24574 relevant lines covered (76.2%)

74.91 hits per line

Jobs
ID Job ID Ran Files Coverage
1 cbf-os-ubuntu-latest-ubuntu-latest-php-8.4-custom-ini-false - 11982940377.1 23 Nov 2024 01:48AM UTC 262
0.0
GitHub Action Run
2 os-ubuntu-latest-php-8.4-custom-ini-false - 11982940377.2 23 Nov 2024 01:48AM UTC 262
74.66
GitHub Action Run
3 os-ubuntu-latest-php-7.2-custom-ini-false - 11982940377.3 23 Nov 2024 01:49AM UTC 262
72.48
GitHub Action Run
4 cbf-os-ubuntu-latest-ubuntu-latest-php-8.1-custom-ini-true - 11982940377.4 23 Nov 2024 01:48AM UTC 262
0.0
GitHub Action Run
5 os-windows-latest-php-8.4-custom-ini-false - 11982940377.5 23 Nov 2024 01:43AM UTC 262
2.38
GitHub Action Run
6 os-ubuntu-latest-php-8.1-custom-ini-true - 11982940377.6 23 Nov 2024 01:48AM UTC 262
74.67
GitHub Action Run
7 os-windows-latest-php-7.2-custom-ini-false - 11982940377.7 23 Nov 2024 01:44AM UTC 262
1.94
GitHub Action Run
8 cbf-os-ubuntu-latest-ubuntu-latest-php-7.2-custom-ini-false - 11982940377.8 23 Nov 2024 01:49AM UTC 262
0.0
GitHub Action Run
Source Files on build 11982940377
  • Tree
  • List 262
  • Changed 3
  • Source Changed 2
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #11982940377
  • 8e60b8d5 on github
  • Prev Build on 4.0 (#11982419139)
  • Next Build on 4.0 (#11983272715)
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

© 2025 Coveralls, Inc