about summary refs log tree commit diff stats
path: root/tests_integration
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2026-05-28 10:06:02 +0300
committerAndrew Dolgov <fox@fakecake.org>2026-05-28 10:06:02 +0300
commit5b2f9dd12183f8de1498a988b8551438eae12e75 (patch)
tree295397c05f770530112b4aa6e981e45684621ab7 /tests_integration
parent00170fafe333ca00f606fb080e035fbb55a96d69 (diff)
downloadthe-epube-5b2f9dd12183f8de1498a988b8551438eae12e75.tar.gz
the-epube-5b2f9dd12183f8de1498a988b8551438eae12e75.tar.xz
make phpstan happy
Diffstat (limited to 'tests_integration')
-rw-r--r--tests_integration/dict_mock_server.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests_integration/dict_mock_server.php b/tests_integration/dict_mock_server.php
index d061266..61019b6 100644
--- a/tests_integration/dict_mock_server.php
+++ b/tests_integration/dict_mock_server.php
@@ -46,6 +46,8 @@ $definitions = [
 
 /**
  * Process a DEFINE command and return the response lines.
+ * @param array<string, array<string, string>> $definitions
+ * @return list<string>
  */
 function handleDefine(string $command, array $definitions): array
 {
@@ -106,6 +108,8 @@ function handleDefine(string $command, array $definitions): array
 
 /**
  * Process a single client connection.
+ * @param \Socket|resource $clientSocket
+ * @param array<string, array<string, string>> $definitions
  */
 function handleClient($clientSocket, array $definitions): void
 {
@@ -182,4 +186,5 @@ while (true) {
 	}
 }
 
+// @phpstan-ignore deadCode.unreachable
 socket_close($socket);