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

FriendsOfPHP / PHP-CS-Fixer / 21243
90%
master: 93%

Build:
Build:
LAST BUILD BRANCH: phpdocAlignFixer
DEFAULT BRANCH: master
Ran 10 Jul 2020 07:17AM UTC
Jobs 1
Files 397
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
21243

push

travis-ci

SpacePossum
bug #5006 PhpdocToParamTypeFixer - fix for breaking PHP syntax for type having reserved name (kubawerlos)

This PR was squashed before being merged into the 2.16 branch (closes #5006).

Discussion
----------

PhpdocToParamTypeFixer - fix for breaking PHP syntax for type having reserved name

Twin PR to https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/4963

I wonder if it would be useful to have some class e.g. `SyntaxChecker` with (static?) method `isValid`, which will handle cache internally and all needed will be to call it like this:
```php
if (!SyntaxChecker::isValid(sprintf('<?php function f(%s $x) {}', $returnType))) {
    continue;
}
```

Currently, this will have 2 uses (here and `PhpdocToReturnTypeFixer`, maybe also `AbstractPsrAutoloadingFixer`, not mandatory), but I imagine quite soon we will have `PhpdocToPropertyTypeFixer`.

Commits
-------

76dde6f94 PhpdocToParamTypeFixer - fix for breaking PHP syntax for type having reserved name

15563 of 17193 relevant lines covered (90.52%)

34.67 hits per line

Jobs
ID Job ID Ran Files Coverage
7 21243.7 (DEFAULT_COMPOSER_FLAGS="--optimize-autoloader --no-interaction --no-progress" COMPOSER_FLAGS="") 10 Jul 2020 07:16AM UTC 0
90.52
Travis Job 21243.7
Source Files on build 21243
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #21243
  • 7405b4d3 on github
  • Prev Build on 2.16 (#21206)
  • Next Build on 2.16 (#21252)
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