File tree Expand file tree Collapse file tree 2 files changed +1
-9
lines changed Expand file tree Collapse file tree 2 files changed +1
-9
lines changed Original file line number Diff line number Diff line change 15
15
use function Amp \call ;
16
16
use function ServiceBus \Common \jsonDecode ;
17
17
use Amp \Promise ;
18
- use Doctrine \Common \Annotations \AnnotationRegistry ;
19
18
use ServiceBus \HttpClient \Artax \ArtaxFormBody ;
20
19
use ServiceBus \HttpClient \Artax \ArtaxHttpClient ;
21
20
use ServiceBus \HttpClient \HttpClient ;
@@ -55,12 +54,6 @@ final class InteractionsProvider
55
54
56
55
public function __construct (?HttpClient $ httpClient = null , ?TelegramSerializer $ serializer = null )
57
56
{
58
- /**
59
- * @noinspection PhpDeprecationInspection
60
- * @psalm-suppress DeprecatedMethod This method is deprecated and will be removed in doctrine/annotations 2.0
61
- */
62
- AnnotationRegistry::registerLoader ('class_exists ' );
63
-
64
57
$ this ->httpClient = $ httpClient ?? new ArtaxHttpClient ();
65
58
$ this ->serializer = $ serializer ?? new WrappedSymfonySerializer ();
66
59
$ this ->validator = (new ValidatorBuilder ())->enableAnnotationMapping ()->getValidator ();
Original file line number Diff line number Diff line change 22
22
final class TestMethod implements TelegramMethod
23
23
{
24
24
/**
25
- * @Assert\NotBlank()
26
- *
27
25
* @var string
28
26
*/
27
+ #[Assert \NotBlank]
29
28
private $ id ;
30
29
31
30
/**
You can’t perform that action at this time.
0 commit comments