Do not include traits twice

This commit is contained in:
Daniil Gentili 2019-05-12 21:03:13 +02:00
parent 92635c7948
commit 56bce59cdb
5 changed files with 2 additions and 4 deletions

View File

@ -1,5 +1,6 @@
#!/usr/bin/env php #!/usr/bin/env php
<?php <?php
/* /*
Copyright 2016-2018 Daniil Gentili Copyright 2016-2018 Daniil Gentili
(https://daniil.it) (https://daniil.it)
@ -306,4 +307,5 @@ foreach (['my_users', 'times', 'times_messages', 'calls'] as $key) {
} }
$MadelineProto->setEventHandler('\EventHandler'); $MadelineProto->setEventHandler('\EventHandler');
$MadelineProto->loop(); $MadelineProto->loop();

View File

@ -34,7 +34,6 @@ use danog\MadelineProto\Tools;
class HttpStream implements MTProtoBufferInterface, BufferedProxyStreamInterface class HttpStream implements MTProtoBufferInterface, BufferedProxyStreamInterface
{ {
use BufferedStream; use BufferedStream;
use Tools;
private $stream; private $stream;
private $code; private $code;
private $ctx; private $ctx;

View File

@ -35,7 +35,6 @@ use danog\MadelineProto\Tools;
class IntermediatePaddedStream implements BufferedStreamInterface, MTProtoBufferInterface class IntermediatePaddedStream implements BufferedStreamInterface, MTProtoBufferInterface
{ {
use BufferedStream; use BufferedStream;
use Tools;
private $stream; private $stream;
/** /**

View File

@ -35,7 +35,6 @@ use danog\MadelineProto\Tools;
*/ */
class ObfuscatedStream implements BufferedProxyStreamInterface class ObfuscatedStream implements BufferedProxyStreamInterface
{ {
use Tools;
use Buffer; use Buffer;
use BufferedStream; use BufferedStream;
private $encrypt; private $encrypt;

View File

@ -43,7 +43,6 @@ use function Amp\Websocket\validateAcceptForKey;
class WsStream implements RawStreamInterface class WsStream implements RawStreamInterface
{ {
use RawStream; use RawStream;
use Tools;
private $stream; private $stream;
private $message; private $message;