@@ -311,12 +311,12 @@ public function containerStart($container, $config = array())
311311 /**
312312 * Stop the container id
313313 *
314- * @param string $container container ID
315- * @param int $t number of seconds to wait before killing the container
314+ * @param string $container container ID
315+ * @param null| int $t (optional) number of seconds to wait before killing the container
316316 * @return Promise Promise<null>
317317 * @link https://docs.docker.com/reference/api/docker_remote_api_v1.15/#stop-a-container
318318 */
319- public function containerStop ($ container , $ t )
319+ public function containerStop ($ container , $ t = null )
320320 {
321321 return $ this ->browser ->post (
322322 $ this ->uri ->expand (
@@ -332,12 +332,12 @@ public function containerStop($container, $t)
332332 /**
333333 * Restart the container id
334334 *
335- * @param string $container container ID
336- * @param int $t number of seconds to wait before killing the container
335+ * @param string $container container ID
336+ * @param null| int $t (optional) number of seconds to wait before killing the container
337337 * @return Promise Promise<null>
338338 * @link https://docs.docker.com/reference/api/docker_remote_api_v1.15/#restart-a-container
339339 */
340- public function containerRestart ($ container , $ t )
340+ public function containerRestart ($ container , $ t = null )
341341 {
342342 return $ this ->browser ->post (
343343 $ this ->uri ->expand (
0 commit comments