Skip to content

Commit c44e046

Browse files
committed
Fix mismatching method signatures
1 parent b26d45b commit c44e046

2 files changed

Lines changed: 1 addition & 65 deletions

File tree

src/Docker.php

Lines changed: 0 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -6,69 +6,13 @@
66

77
use Docker\API\Client;
88
use Docker\API\Model\AuthConfig;
9-
use Docker\API\Model\ExecIdStartPostBody;
10-
use Docker\Endpoint\ContainerAttach;
11-
use Docker\Endpoint\ContainerAttachWebsocket;
12-
use Docker\Endpoint\ContainerLogs;
13-
use Docker\Endpoint\ExecStart;
14-
use Docker\Endpoint\ImageBuild;
15-
use Docker\Endpoint\ImageCreate;
169
use Docker\Endpoint\ImagePush;
17-
use Docker\Endpoint\SystemEvents;
1810

1911
/**
2012
* Docker\Docker.
2113
*/
2214
class Docker extends Client
2315
{
24-
/**
25-
* {@inheritdoc}
26-
*/
27-
public function containerAttach(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = [])
28-
{
29-
return $this->executeEndpoint(new ContainerAttach($id, $queryParameters, $accept), $fetch);
30-
}
31-
32-
/**
33-
* {@inheritdoc}
34-
*/
35-
public function containerAttachWebsocket(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = [])
36-
{
37-
return $this->executeEndpoint(new ContainerAttachWebsocket($id, $queryParameters, $accept), $fetch);
38-
}
39-
40-
/**
41-
* {@inheritdoc}
42-
*/
43-
public function containerLogs(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = [])
44-
{
45-
return $this->executeEndpoint(new ContainerLogs($id, $queryParameters, $accept), $fetch);
46-
}
47-
48-
/**
49-
* {@inheritdoc}
50-
*/
51-
public function execStart(string $id, ?ExecIdStartPostBody $execStartConfig = null, string $fetch = self::FETCH_OBJECT)
52-
{
53-
return $this->executeEndpoint(new ExecStart($id, $execStartConfig), $fetch);
54-
}
55-
56-
/**
57-
* {@inheritdoc}
58-
*/
59-
public function imageBuild($inputStream = null, array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT)
60-
{
61-
return $this->executeEndpoint(new ImageBuild($inputStream, $queryParameters, $headerParameters), $fetch);
62-
}
63-
64-
/**
65-
* {@inheritdoc}
66-
*/
67-
public function imageCreate(?string $inputImage = null, array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT)
68-
{
69-
return $this->executeEndpoint(new ImageCreate($inputImage, $queryParameters, $headerParameters), $fetch);
70-
}
71-
7216
/**
7317
* {@inheritdoc}
7418
*/
@@ -81,14 +25,6 @@ public function imagePush(string $name, array $queryParameters = [], array $head
8125
return $this->executeEndpoint(new ImagePush($name, $queryParameters, $headerParameters, $accept), $fetch);
8226
}
8327

84-
/**
85-
* {@inheritdoc}
86-
*/
87-
public function systemEvents(array $queryParameters = [], string $fetch = self::FETCH_OBJECT)
88-
{
89-
return $this->executeEndpoint(new SystemEvents($queryParameters), $fetch);
90-
}
91-
9228
public static function create($httpClient = null, array $additionalPlugins = [], array $additionalNormalizers = [])
9329
{
9430
if (null === $httpClient) {

src/Stream/TarStream.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function detach()
3636
/**
3737
* {@inheritdoc}
3838
*/
39-
public function getSize()
39+
public function getSize(): ?int
4040
{
4141
return null;
4242
}

0 commit comments

Comments
 (0)