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

j0k3r / php-readability / 27813522719
84%

Build:
DEFAULT BRANCH: master
Ran 19 Jun 2026 08:04AM UTC
Jobs 1
Files 2
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

19 Jun 2026 08:00AM UTC coverage: 84.485% (-0.1%) from 84.605%
27813522719

push

github

jtojnar
JSLikeHTMLElement: Add types to methods

PHP-CS-Fixer 3.95.0 added `void_return` rule to `@Symfony:risky` ruleset.

https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/releases/tag/v3.95.0
https://cs.symfony.com/doc/rules/function_notation/void_return.html

`void` type declaration is available since PHP 7.1:
https://www.php.net/manual/en/language.types.void.php

Magic methods can have type annotations but they must be compatible with the default ones
(not enforced prior to PHP 8.0):
https://php.watch/versions/8.0/magic-method-signatures

Let’s just type all the methods.

This could technically be a BC break if someone is extending
the `JSLikeHTMLElement` class, overriding the methods that previously
did not have return type hint without adding it, and calling
`registerNodeClass` on the public `dom` property but I think it is
pretty unlikely – at least there seem to be no public instances on GitHub.

1 of 2 new or added lines in 1 file covered. (50.0%)

599 of 709 relevant lines covered (84.49%)

21.75 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
62.16
-1.73% src/JSLikeHTMLElement.php
Jobs
ID Job ID Ran Files Coverage
1 27813522719.1 19 Jun 2026 08:04AM UTC 2
84.49
GitHub Action Run
Source Files on build 27813522719
  • Tree
  • List 2
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 116b6c83 on github
  • Prev Build on master (#27813332441)
  • Next Build on master (#27813653297)
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