File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ public function connect(): bool
6767 }
6868 }
6969
70- $ this ->setTimeoutOnStream ();
70+ $ this ->configureTimeout ();
7171
7272 return true ;
7373 }
@@ -121,14 +121,14 @@ public function disconnect()
121121 public function setTimeout (float $ timeout ): void
122122 {
123123 parent ::setTimeout ($ timeout );
124- $ this ->setTimeoutOnStream ();
124+ $ this ->configureTimeout ();
125125 }
126126
127127 /**
128128 * @return void
129129 * @throws ConnectException
130130 */
131- private function setTimeoutOnStream (): void
131+ private function configureTimeout (): void
132132 {
133133 $ timeout = (int )floor ($ this ->timeout );
134134 if (!stream_set_timeout ($ this ->stream , $ timeout , (int )floor (($ this ->timeout - $ timeout ) * 1000000 ))) {
You can’t perform that action at this time.
0 commit comments