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

MyIntervals / PHP-CSS-Parser / 22678642258

04 Mar 2026 04:26PM UTC coverage: 72.752% (-0.1%) from 72.886%
22678642258

Pull #1559

github

web-flow
Merge 2392e35d0 into 88dbd0f7f
Pull Request #1559: [TASK] Make aliased class deprecation notices visible to tools

0 of 4 new or added lines in 2 files covered. (0.0%)

4 existing lines in 2 files now uncovered.

1586 of 2180 relevant lines covered (72.75%)

38.21 hits per line

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

0.0
/src/RuleSet/RuleContainer.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Sabberworm\CSS\RuleSet;
6

7
use function Safe\class_alias;
8

9
if (!\class_exists(RuleContainer::class, false) && !\interface_exists(RuleContainer::class, false)) {
×
UNCOV
10
    class_alias(DeclarationList::class, RuleContainer::class);
×
11
    // The test is expected to evaluate to false,
12
    // but allows for the deprecation notice to be picked up by IDEs like PHPStorm.
13
    // @phpstan-ignore-next-line booleanAnd.alwaysTrue
NEW
14
    if (!\class_exists(RuleContainer::class, false) && !\interface_exists(RuleContainer::class, false)) {
×
15
        /**
16
         * @deprecated in v9.2, will be removed in v10.0.  Use `DeclarationList` instead, which is a direct replacement.
17
         */
18
        interface RuleContainer {}
NEW
19
    }
×
UNCOV
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