Skip to content

Commit b01434f

Browse files
author
Greg Bowler
committed
tweak: deprecate pre-8.4 attribute
1 parent c59f68c commit b01434f

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

src/Input.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,8 @@ public function select(string...$keys):Trigger {
244244

245245
return $this->newTrigger("with", ...$keys);
246246
}
247-
#[\Deprecated("Use select() instead to avoid ambiguity with immutable `with` functions")]
247+
248+
/** @deprecated Use select() instead to avoid ambiguity with immutable `with` functions */
248249
public function with(string...$keys):Trigger {
249250
return $this->select(...$keys);
250251
}
@@ -256,7 +257,7 @@ public function with(string...$keys):Trigger {
256257
public function selectAllExcept(string...$keys):Trigger {
257258
return $this->newTrigger("without", ...$keys);
258259
}
259-
#[\Deprecated("Use selectAllExcept() instead to avoid ambiguity with immutable `with` functions")]
260+
/** @deprecated Use selectAllExcept() instead to avoid ambiguity with immutable `with` functions */
260261
public function without(string...$keys):Trigger {
261262
return $this->selectAllExcept(...$keys);
262263
}
@@ -267,7 +268,7 @@ public function without(string...$keys):Trigger {
267268
public function selectAll():Trigger {
268269
return $this->newTrigger("withAll");
269270
}
270-
#[\Deprecated("Use selectAll() instead to avoid ambiguity with immutable `with` functions")]
271+
/** @deprecated Use selectAll() instead to avoid ambiguity with immutable `with` functions */
271272
public function withAll():Trigger {
272273
return $this->selectAll();
273274
}

src/Trigger/Trigger.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function select(string...$keys):self {
5656

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

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

8080
return $this;
8181
}
82-
#[\Deprecated("Use selectAll() instead to avoid ambiguity with immutable `with` functions")]
82+
/** @deprecated Use selectAll() instead to avoid ambiguity with immutable `with` functions */
8383
public function withAll():self {
8484
return $this->selectAll();
8585
}

0 commit comments

Comments
 (0)