Skip to content

Commit

Permalink
Merge pull request #117 from shivammathur/fix-osguess-darwin
Browse files Browse the repository at this point in the history
Add $this operator to _determineIfPowerpc calls
  • Loading branch information
kenguest authored Aug 9, 2021
2 parents 27209e6 + b4b9fd8 commit f30f514
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OS/Guess.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,10 @@ function parseSignature($uname = null)
$sysname = 'darwin';
$nodename = $parts[2];
$release = $parts[3];
$cpu = _determineIfPowerpc($cpu, $parts);
$cpu = $this->_determineIfPowerpc($cpu, $parts);
break;
case 'Darwin' :
$cpu = _determineIfPowerpc($cpu, $parts);
$cpu = $this->_determineIfPowerpc($cpu, $parts);
$release = preg_replace('/^([0-9]+\.[0-9]+).*/', '\1', $parts[2]);
break;
default:
Expand Down

0 comments on commit f30f514

Please sign in to comment.