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

laravie / html / 394 / 13
75%
5.2: 70%

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

30 Dec 2018 02:44PM UTC coverage: 74.67% (-0.4%) from 75.054%
setup=coveralls coverage=yes

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

Source Files on job 394.13 (setup=coveralls coverage=yes)
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 335
  • Travis Job 394.13
  • 8709e9ba on github
  • Prev Job for setup=coveralls coverage=yes on 5.7 (#393.13)
  • Next Job for setup=coveralls coverage=yes on 5.7 (#396.13)
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