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

Ocramius / GeneratedHydrator / 115 / 1
30%
master: 30%

Build:
DEFAULT BRANCH: master
Ran 07 Jul 2015 07:01AM UTC
Files 7
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

07 Jul 2015 06:59AM UTC coverage: 97.143%. First build
115.1

Pull #37

travis-ci

Matthias Noback
Allow generated classes target dir to be null

Because of the string casting, in my code I have to call `setGeneratedClassesTargetDir()` like this:

```php
class HydrateUsingGeneratedHydrator implements Hydrate
{
    /**
     * @var string|null
     */
    private $cacheDir;

    public function __construct($cacheDir)
    {
        $this->cacheDir = $cacheDir;
    }

    public function hydrate(array $data, $object)
    {
        $configuration = new Configuration(get_class($object));

        if ($this->cacheDir !== null) {
            $configuration->setGeneratedClassesTargetDir($this->cacheDir);
        }
        ...
}
```

The proposed change allows me to just call `$configuration->setGeneratedClassesTargetDir($this->cacheDir);` without the extra `if` clause.
Pull Request #37:

170 of 175 relevant lines covered (97.14%)

1.79 hits per line

Source Files on job 115.1
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 115
  • Travis Job 115.1
  • 7cfd1772 on github
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