Skip to content

Commit

Permalink
Avoid creation of dynamic property (PHP 8.2+)
Browse files Browse the repository at this point in the history
  • Loading branch information
yadaiio authored and clue committed May 28, 2024
1 parent 039ce02 commit e637704
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.6/phpunit.xsd"
bootstrap="vendor/autoload.php"
cacheResult="false"
colors="true">
colors="true"
convertDeprecationsToExceptions="true">
<testsuites>
<testsuite name="Socks Test Suite">
<directory>./tests/</directory>
Expand All @@ -16,4 +17,7 @@
<directory>./src/</directory>
</include>
</coverage>
<php>
<ini name="error_reporting" value="-1" />
</php>
</phpunit>
3 changes: 3 additions & 0 deletions phpunit.xml.legacy
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,7 @@
<directory>./src/</directory>
</whitelist>
</filter>
<php>
<ini name="error_reporting" value="-1" />
</php>
</phpunit>
3 changes: 0 additions & 3 deletions src/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -387,9 +387,6 @@ public function connectTarget(ConnectionInterface $stream, array $target)
$that->endConnection($remote);
});

// set bigger buffer size of 100k to improve performance
$stream->bufferSize = $remote->bufferSize = 100 * 1024 * 1024;

return $remote;
}, function(Exception $error) {
// default to general/unknown error
Expand Down

0 comments on commit e637704

Please sign in to comment.