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

MyIntervals / PHP-CSS-Parser / 22648350750

03 Mar 2026 11:56PM UTC coverage: 72.752% (-0.1%) from 72.886%
22648350750

Pull #1559

github

web-flow
Merge 28c0b98c1 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/Rule/Rule.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Sabberworm\CSS\Rule;
6

7
use Sabberworm\CSS\Property\Declaration;
8

9
use function Safe\class_alias;
10

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