Skip to content

Commit

Permalink
tweak: deprecate pre-8.4 attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
g105b committed Feb 13, 2025
1 parent c59f68c commit b01434f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions src/Input.php
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,8 @@ public function select(string...$keys):Trigger {

return $this->newTrigger("with", ...$keys);
}
#[\Deprecated("Use select() instead to avoid ambiguity with immutable `with` functions")]

/** @deprecated Use select() instead to avoid ambiguity with immutable `with` functions */
public function with(string...$keys):Trigger {
return $this->select(...$keys);
}
Expand All @@ -256,7 +257,7 @@ public function with(string...$keys):Trigger {
public function selectAllExcept(string...$keys):Trigger {
return $this->newTrigger("without", ...$keys);
}
#[\Deprecated("Use selectAllExcept() instead to avoid ambiguity with immutable `with` functions")]
/** @deprecated Use selectAllExcept() instead to avoid ambiguity with immutable `with` functions */
public function without(string...$keys):Trigger {
return $this->selectAllExcept(...$keys);
}
Expand All @@ -267,7 +268,7 @@ public function without(string...$keys):Trigger {
public function selectAll():Trigger {
return $this->newTrigger("withAll");
}
#[\Deprecated("Use selectAll() instead to avoid ambiguity with immutable `with` functions")]
/** @deprecated Use selectAll() instead to avoid ambiguity with immutable `with` functions */
public function withAll():Trigger {
return $this->selectAll();
}
Expand Down
6 changes: 3 additions & 3 deletions src/Trigger/Trigger.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function select(string...$keys):self {

return $this;
}
#[\Deprecated("Use select() instead to avoid ambiguity with immutable `with` functions")]
/** @deprecated Use select() instead to avoid ambiguity with immutable `with` functions */
public function with(string...$keys):self {
return $this->select(...$keys);
}
Expand All @@ -68,7 +68,7 @@ public function selectAllExcept(string...$keys):self {

return $this;
}
#[\Deprecated("Use selectAllExcept() instead to avoid ambiguity with immutable `with` functions")]
/** @deprecated Use selectAllExcept() instead to avoid ambiguity with immutable `with` functions */
public function without(string...$keys):self {
return $this->selectAllExcept(...$keys);
}
Expand All @@ -79,7 +79,7 @@ public function selectAll():self {

return $this;
}
#[\Deprecated("Use selectAll() instead to avoid ambiguity with immutable `with` functions")]
/** @deprecated Use selectAll() instead to avoid ambiguity with immutable `with` functions */
public function withAll():self {
return $this->selectAll();
}
Expand Down

0 comments on commit b01434f

Please sign in to comment.