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

FriendsOfPHP / PHP-CS-Fixer / 22287
93%

Build:
DEFAULT BRANCH: master
Ran 16 Nov 2020 12:31PM UTC
Jobs 1
Files 462
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

pending completion
22287

push

travis-ci-com

SpacePossum
minor #5251 PHP8 - match support (SpacePossum)

This PR was merged into the 2.17-dev branch.

Discussion
----------

PHP8 - match support

Not implemented but leaving as note here; `ReturnAssignmentFixer` could support the following:

```
    /**
     * @param string      $expected
     * @param null|string $input
     *
     * @dataProvider provideFixPhp80Cases
     * @requires PHP 8.0
     */
    public function testFixPhp80($expected, $input = null)
    {
        $this->doTest($expected, $input);
    }

    public function provideFixPhp80Cases()
    {
        yield [
            '<?php
function foo($bar) {
    return = match ($bar) {
        1 => "one",
        2 => "two",
    };
}

$z = foo(1);',
            '<?php
function foo($bar) {
    $a = match ($bar) {
        1 => "one",
        2 => "two",
    };

    return $a;
}

$z = foo(1);',
        ];
    }
```

Commits
-------

48ad98c6f PHP8 Match support

17107 of 18959 relevant lines covered (90.23%)

35.39 hits per line

Jobs
ID Job ID Ran Files Coverage
7 22287.7 (DEFAULT_COMPOSER_FLAGS="--optimize-autoloader --no-interaction --no-progress" COMPOSER_FLAGS="") 16 Nov 2020 12:23PM UTC 0
90.23
Travis Job 22287.7
Source Files on build 22287
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #22287
  • 343f67ab on github
  • Prev Build on master (#22284)
  • Next Build on master (#22288)
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