Skip to content

Commit 62b731c

Browse files
author
Masiukevich Maksim
committed
attributes test
1 parent 97fbb4a commit 62b731c

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

src/Interaction/InteractionsProvider.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
use function Amp\call;
1616
use function ServiceBus\Common\jsonDecode;
1717
use Amp\Promise;
18-
use Doctrine\Common\Annotations\AnnotationRegistry;
1918
use ServiceBus\HttpClient\Artax\ArtaxFormBody;
2019
use ServiceBus\HttpClient\Artax\ArtaxHttpClient;
2120
use 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();

tests/Interaction/TestMethod.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,9 @@
2222
final class TestMethod implements TelegramMethod
2323
{
2424
/**
25-
* @Assert\NotBlank()
26-
*
2725
* @var string
2826
*/
27+
#[Assert\NotBlank]
2928
private $id;
3029

3130
/**

0 commit comments

Comments
 (0)