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

JayBizzle / Crawler-Detect / 27306110050
100%

Build:
DEFAULT BRANCH: master
Ran 10 Jun 2026 09:02PM UTC
Jobs 1
Files 5
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

10 Jun 2026 09:01PM UTC coverage: 100.0%. Remained the same
27306110050

push

github

web-flow
Add PHPStan static analysis (level 5) with CI workflow (#612)

* Key compiled-regex cache by fixture class instead of pattern hash

The memoization added in c617d86 keyed the cache with
md5(serialize($patterns)), which costs ~100us per construction —
about 7x more than the ~14us implode() it was meant to avoid, making
every 'new CrawlerDetect' slower than having no cache at all.

The pattern lists are fixed class properties, so the fixture class
name is a sufficient cache key. compileRegex() is restored to a pure
compile step and the memoization moves to a class-keyed helper.

Measured: ~104us -> ~2.6us per construction (PHP 8.4).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* Add PHPStan static analysis (level 5) with CI workflow

PHPStan is installed in the workflow via setup-php tools rather than
require-dev, because it needs PHP >= 7.4 while the test matrix still
runs composer install on PHP 7.1.

phpVersion is pinned to 70100 so analysis catches regressions against
the library's minimum supported PHP version.

Level 5 is the highest level that passes without code changes; raising
it further mainly wants native/iterable types, which are constrained
by the PHP 7.1 floor.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>

44 of 44 relevant lines covered (100.0%)

14.41 hits per line

Jobs
ID Job ID Ran Files Coverage
1 27306110050.1 10 Jun 2026 09:02PM UTC 5
100.0
GitHub Action Run
Source Files on build 27306110050
  • Tree
  • List 5
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • c92b662b on github
  • Prev Build on master (#27306077372)
  • Next Build on master (#27306191761)
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