Skip to content

Commit 1734e3d

Browse files
authored
Merge pull request #34 from aurell14/6.0
Support Laravel 6.0
2 parents 3189c21 + ac840e9 commit 1734e3d

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
"license": "MIT",
66
"type": "library",
77
"require": {
8-
"php": ">=7.1.0",
8+
"php": ">=7.2.0",
99
"ext-zmq": "*",
1010
"cboden/ratchet": "^0.4",
1111
"graham-campbell/throttle": "^7.4",
12-
"illuminate/console": "^5.5|^6.0",
13-
"illuminate/support": "^5.5|^6.0",
12+
"illuminate/console": "^6.0",
13+
"illuminate/support": "^6.0",
1414
"react/zmq": "0.2.*|0.3.*|0.4.*"
1515
},
1616
"autoload": {

src/RatchetWsServer.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Askedio\LaravelRatchet;
44

5+
use Illuminate\Support\Str;
56
use Ratchet\ConnectionInterface;
67
use Ratchet\MessageComponentInterface;
78
use GrahamCampbell\Throttle\Facades\Throttle;
@@ -74,7 +75,7 @@ protected function attach()
7475
$this->console->info(sprintf('Connected: %d', $this->conn->resourceId));
7576

7677
$this->connections = count($this->clients);
77-
$this->console->info(sprintf('%d %s', $this->connections, str_plural('connection', $this->connections)));
78+
$this->console->info(sprintf('%d %s', $this->connections, Str::plural('connection', $this->connections)));
7879

7980
return $this;
8081
}

0 commit comments

Comments
 (0)