Skip to content

Commit 748cdd0

Browse files
committed
Use [] for array offsets
1 parent f005b0f commit 748cdd0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/php/peer/http/HttpProxy.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class HttpProxy {
3333
*/
3434
public function __construct($host, $port= 8080, $excludes= []) {
3535
if (null === $port) {
36-
if ('[' === $host{0}) {
36+
if ('[' === $host[0]) {
3737
$parsed= sscanf($host, '[%[^]]]:%d', $addr, $this->port);
3838
$this->host= '['.$addr.']';
3939
} else {

0 commit comments

Comments
 (0)