Skip to content

Commit

Permalink
Make sure we are compatible with PHP7.3 (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyholm authored Dec 11, 2018
1 parent 5f7d5d5 commit 49ad650
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DSN.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ private function parseDsn($dsn)

private function parseHosts($hostString)
{
preg_match_all('/(?P<host>[\w-._]+)(?::(?P<port>\d+))?/mi', $hostString, $matches);
preg_match_all('/(?P<host>[\w\-._]+)(?::(?P<port>\d+))?/mi', $hostString, $matches);

$hosts = [];
foreach ($matches['host'] as $index => $match) {
Expand Down

0 comments on commit 49ad650

Please sign in to comment.