| 1 |
<?php |
| 2 |
|
| 3 |
declare (strict_types=1); |
| 4 |
namespace WCPOS\Vendor\Sabberworm\CSS\RuleSet; |
| 5 |
|
| 6 |
use function WCPOS\Vendor\Safe\class_alias; |
| 7 |
// @phpstan-ignore function.impossibleType |
| 8 |
if (!\class_exists(RuleContainer::class, \false) && !\interface_exists(RuleContainer::class, \false)) { |
| 9 |
class_alias(DeclarationList::class, RuleContainer::class); |
| 10 |
// The test is expected to evaluate to false, |
| 11 |
// but allows for the deprecation notice to be picked up by IDEs like PHPStorm. |
| 12 |
// @phpstan-ignore booleanNot.alwaysTrue, booleanAnd.alwaysTrue, function.impossibleType |
| 13 |
if (!\class_exists(RuleContainer::class, \false) && !\interface_exists(RuleContainer::class, \false)) { |
| 14 |
/** |
| 15 |
* @deprecated in v9.2, will be removed in v10.0. Use `DeclarationList` instead, which is a direct replacement. |
| 16 |
*/ |
| 17 |
interface RuleContainer |
| 18 |
{ |
| 19 |
} |
| 20 |
} |
| 21 |
} |
| 22 |
|