From b344f31917cd34ffa15d27d96124175265a37fd0 Mon Sep 17 00:00:00 2001 From: Carlos Alandete Sastre Date: Fri, 12 Jan 2024 14:12:22 +0100 Subject: [PATCH] Remove deprecated selectors --- src/Selector/SelectorPrimitive.php | 94 ------------------------------ 1 file changed, 94 deletions(-) diff --git a/src/Selector/SelectorPrimitive.php b/src/Selector/SelectorPrimitive.php index 1b2ab078..37d715fe 100644 --- a/src/Selector/SelectorPrimitive.php +++ b/src/Selector/SelectorPrimitive.php @@ -9,119 +9,36 @@ public static function all(): All return new All(); } - /** - * @deprecated - * @see Selector::isInterface() - */ - public static function interface(): IsInterface - { - return self::isInterface(); - } - public static function isInterface(): IsInterface { return new IsInterface(); } - /** - * @deprecated - * @see Selector::isAbstract() - */ - public static function abstract(): IsAbstract - { - return self::isAbstract(); - } - public static function isAbstract(): IsAbstract { return new IsAbstract(); } - /** - * @deprecated use Selector::NOT(Selector::isAbstract()) - * @see Selector::isAbstract() - */ - public static function notAbstract(): IsNotAbstract - { - return new IsNotAbstract(); - } - - /** - * @deprecated - * @see Selector::isFinal() - */ - public static function final(): IsFinal - { - return self::isFinal(); - } - public static function isFinal(): IsFinal { return new IsFinal(); } - /** - * @deprecated - * @see Selector::isReadonly() - */ - public static function readonly(): IsReadonly - { - return self::isReadonly(); - } - public static function isReadonly(): IsReadonly { return new IsReadonly(); } - /** - * @deprecated use Selector::NOT(Selector::isFinal()) - * @see Selector::isFinal() - */ - public static function notFinal(): IsNotFinal - { - return new IsNotFinal(); - } - - /** - * @deprecated - * @see Selector::isEnum() - */ - public static function enum(): IsEnum - { - return self::isEnum(); - } - public static function isEnum(): IsEnum { return new IsEnum(); } - /** - * @deprecated - * @see Selector::isAttribute() - */ - public static function attribute(): IsAttribute - { - return self::isAttribute(); - } - public static function isAttribute(): IsAttribute { return new IsAttribute(); } - /** - * @param class-string|non-empty-string $namespace - * - * @deprecated - * @see Selector::inNamespace() - */ - public static function namespace(string $namespace, bool $regex = false): ClassNamespace - { - return self::inNamespace($namespace, $regex); - } - /** * @param class-string|non-empty-string $namespace */ @@ -154,17 +71,6 @@ public static function extends(string $fqcn, bool $regex = false): ClassExtends return new ClassExtends($fqcn, $regex); } - /** - * @param class-string|non-empty-string $fqcn - * - * @deprecated - * @see Selector::appliesAttribute() - */ - public static function hasAttribute(string $fqcn, bool $regex = false): AppliesAttribute - { - return self::appliesAttribute($fqcn, $regex); - } - /** * @param class-string|non-empty-string $fqcn */