Vendor packages updated
This commit is contained in:
24
vendor/sabberworm/php-css-parser/src/Rule/Rule.php
vendored
Normal file
24
vendor/sabberworm/php-css-parser/src/Rule/Rule.php
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Sabberworm\CSS\Rule;
|
||||
|
||||
use Sabberworm\CSS\Property\Declaration;
|
||||
|
||||
use function Safe\class_alias;
|
||||
|
||||
// @phpstan-ignore function.impossibleType
|
||||
if (!\class_exists(Rule::class, false) && !\interface_exists(Rule::class, false)) {
|
||||
class_alias(Declaration::class, Rule::class);
|
||||
// The test is expected to evaluate to false,
|
||||
// but allows for the deprecation notice to be picked up by IDEs like PHPStorm.
|
||||
// @phpstan-ignore booleanNot.alwaysTrue, booleanAnd.alwaysTrue, function.impossibleType
|
||||
if (!\class_exists(Rule::class, false) && !\interface_exists(Rule::class, false)) {
|
||||
/**
|
||||
* @deprecated in v9.2, will be removed in v10.0. Use `Property\Declaration` instead, which is a direct
|
||||
* replacement.
|
||||
*/
|
||||
class Rule {}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user