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

ICanBoogie / ActiveRecord / 4437457574

pending completion
4437457574

push

github

Olivier Laviale
Case of a nullable belong_to

7 of 7 new or added lines in 1 file covered. (100.0%)

1356 of 1686 relevant lines covered (80.43%)

34.68 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/lib/ActiveRecord/UnsetAttribute.php
1
<?php
2

3
namespace ICanBoogie\ActiveRecord;
4

5
use InvalidArgumentException;
6

7
class UnsetAttribute extends InvalidArgumentException
8
{
9
    /**
10
     * @param array<string, mixed> $attributes
11
     */
12
    public static function ThrowIf(array $attributes, string $attribute): void
13
    {
14
        if (isset($attributes[$attribute])) {
×
15
            return;
×
16
        }
17

18
        throw new UnsetAttribute("Unset attribute: $attribute.");
×
19
    }
20
}
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