Skip to content

Commit bd5bf72

Browse files
limingxinleoyii6
andauthored
Make some useless methods to deprecated in AbstractAnnotation. (#6025)
Co-authored-by: yu.wang <[email protected]>
1 parent 4fa4689 commit bd5bf72

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Annotation/AbstractAnnotation.php

+10
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717

1818
abstract class AbstractAnnotation implements AnnotationInterface, Arrayable
1919
{
20+
/**
21+
* @deprecated will be removed in v3.1
22+
*/
2023
public function __construct(...$value)
2124
{
2225
$formattedValue = $this->formatParams($value);
@@ -52,6 +55,10 @@ public function collectProperty(string $className, ?string $target): void
5255
AnnotationCollector::collectProperty($className, $target, static::class, $this);
5356
}
5457

58+
/**
59+
* @deprecated will be removed in v3.1
60+
* @param mixed $value
61+
*/
5562
protected function formatParams($value): array
5663
{
5764
if (isset($value[0])) {
@@ -63,6 +70,9 @@ protected function formatParams($value): array
6370
return $value;
6471
}
6572

73+
/**
74+
* @deprecated will be removed in v3.1
75+
*/
6676
protected function bindMainProperty(string $key, array $value)
6777
{
6878
$formattedValue = $this->formatParams($value);

0 commit comments

Comments
 (0)