Skip to content

Commit

Permalink
php 5.3 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
iamcal committed Apr 21, 2021
1 parent 43bcc30 commit a3f5534
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/IPParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function parse($in){
if (strlen($in2)){
# simple atoms
if (preg_match("!^($atom6)(?::($atom6)){0,6}$!", $in2, $m)){
$post_atoms = [];
$post_atoms = array();
foreach (array_slice($m, 1) as $atom){
$post_atoms[] = hexdec($atom);
}
Expand Down

0 comments on commit a3f5534

Please sign in to comment.