Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deprecated selectors #261

Merged
merged 1 commit into from
Jan 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
94 changes: 0 additions & 94 deletions src/Selector/SelectorPrimitive.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down Expand Up @@ -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
*/
Expand Down
Loading