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

laravie / html / 394
75%
5.2: 70%

Build:
Build:
LAST BUILD BRANCH: v7.3.0
DEFAULT BRANCH: 5.2
Ran 30 Dec 2018 02:51PM UTC
Jobs 1
Files 13
Run time 1s
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
394

push

travis-ci

crynobone
[PATCH] Simplify `hasFormMutator` method

The previous implementation that relied on Reflection is causing fatal
PHP errors, when a Model which uses the FormAccessible trait is being
dumped (with Symfony's dumper).

The reason is because the dumper is using reflection to dump all the
model's properties, and when it hits the `reflection` property, it tries
to cast the `ReflectionClass` using `ReflectionClass`, which causes an
`Internal error: Failed to retrieve the reflection object`.

The new implementation uses the same stragegy as Eloquent's
`hasGetMutator`, which calls `method_exists`.

This is more efficient as we don't need a whole reflection object,
neither we need to iterate through all the reflected public properties
of the model, just to find the first one that matches the mutator method
name.

Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>

339 of 454 relevant lines covered (74.67%)

7.13 hits per line

Jobs
ID Job ID Ran Files Coverage
13 394.13 (setup=coveralls coverage=yes) 30 Dec 2018 02:50PM UTC 0
74.67
Travis Job 394.13
Source Files on build 394
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #394
  • 8709e9ba on github
  • Prev Build on 5.7 (#393)
  • Next Build on 5.7 (#396)
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