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

keradus / PHP-CS-Fixer / 3354
94%
1.11: 82%

Build:
Build:
LAST BUILD BRANCH: master
DEFAULT BRANCH: 1.11
Ran 08 Dec 2017 03:51PM UTC
Jobs 1
Files 317
Run time 13s
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

pending completion
3354

push

travis-ci

keradus
feature #3187 StaticLambdaFixer - introduction (SpacePossum, keradus)

This PR was squashed before being merged into the 2.9-dev branch (closes #3187).

Discussion
----------

StaticLambdaFixer - introduction

Lambda's not (indirect) referencing `$this` must be declared `static`.

```
$ php php-cs-fixer describe static_lambda
Description of static_lambda rule.
Lambda's not (indirect) referencing `$this` must be declared `static`.

Fixing examples:
 * Example #1.
   ---------- begin diff ----------
   --- Original
   +++ New
   @@ -1,2 +1,2 @@
    <?php
   -$a = function () use ($b)
   +$a = static function () use ($b)
   ----------- end diff -----------
```

Commits
-------

d9ef4077 StaticLambdaFixer - introduction

8983 of 11480 relevant lines covered (78.25%)

35.32 hits per line

Jobs
ID Job ID Ran Files Coverage
5 3354.5 (COLLECT_COVERAGE=1) 08 Dec 2017 03:42PM UTC 0
78.25
Travis Job 3354.5
Source Files on build 3354
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #3354
  • 95aff2b9 on github
  • Prev Build on master (#3353)
  • Next Build on master (#3359)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc