Skip to content

Commit 20f2df2

Browse files
committed
Avoid creation of dynamic property (PHP 8.2+)
1 parent 039ce02 commit 20f2df2

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

phpunit.xml.dist

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.6/phpunit.xsd"
66
bootstrap="vendor/autoload.php"
77
cacheResult="false"
8-
colors="true">
8+
colors="true"
9+
convertDeprecationsToExceptions="true">
910
<testsuites>
1011
<testsuite name="Socks Test Suite">
1112
<directory>./tests/</directory>
@@ -16,4 +17,7 @@
1617
<directory>./src/</directory>
1718
</include>
1819
</coverage>
20+
<php>
21+
<ini name="error_reporting" value="-1" />
22+
</php>
1923
</phpunit>

phpunit.xml.legacy

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,7 @@
1515
<directory>./src/</directory>
1616
</whitelist>
1717
</filter>
18+
<php>
19+
<ini name="error_reporting" value="-1" />
20+
</php>
1821
</phpunit>

src/Server.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -387,9 +387,6 @@ public function connectTarget(ConnectionInterface $stream, array $target)
387387
$that->endConnection($remote);
388388
});
389389

390-
// set bigger buffer size of 100k to improve performance
391-
$stream->bufferSize = $remote->bufferSize = 100 * 1024 * 1024;
392-
393390
return $remote;
394391
}, function(Exception $error) {
395392
// default to general/unknown error

0 commit comments

Comments
 (0)