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 1515use function Amp \call ;
1616use function ServiceBus \Common \jsonDecode ;
1717use Amp \Promise ;
18- use Doctrine \Common \Annotations \AnnotationRegistry ;
1918use ServiceBus \HttpClient \Artax \ArtaxFormBody ;
2019use ServiceBus \HttpClient \Artax \ArtaxHttpClient ;
2120use ServiceBus \HttpClient \HttpClient ;
@@ -55,12 +54,6 @@ final class InteractionsProvider
5554
5655 public function __construct (?HttpClient $ httpClient = null , ?TelegramSerializer $ serializer = null )
5756 {
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-
6457 $ this ->httpClient = $ httpClient ?? new ArtaxHttpClient ();
6558 $ this ->serializer = $ serializer ?? new WrappedSymfonySerializer ();
6659 $ this ->validator = (new ValidatorBuilder ())->enableAnnotationMapping ()->getValidator ();
Original file line number Diff line number Diff line change 2222final class TestMethod implements TelegramMethod
2323{
2424 /**
25- * @Assert\NotBlank()
26- *
2725 * @var string
2826 */
27+ #[Assert \NotBlank]
2928 private $ id ;
3029
3130 /**
You can’t perform that action at this time.
0 commit comments