-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow extensibility of protected properties.
- Loading branch information
1 parent
e7d78f9
commit d4279b3
Showing
1 changed file
with
13 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -919,7 +919,7 @@ public function getHttpHeader(string $header): ?string | |
|
||
public function getMobileHeaders(): array | ||
{ | ||
return self::$mobileHeaders; | ||
return static::$mobileHeaders; | ||
} | ||
|
||
/** | ||
|
@@ -930,7 +930,7 @@ public function getMobileHeaders(): array | |
*/ | ||
public function getUaHttpHeaders(): array | ||
{ | ||
return self::$uaHttpHeaders; | ||
return static::$uaHttpHeaders; | ||
} | ||
|
||
|
||
|
@@ -1046,7 +1046,7 @@ public function getMatchesArray(): ?array | |
*/ | ||
public static function getPhoneDevices(): array | ||
{ | ||
return self::$phoneDevices; | ||
return static::$phoneDevices; | ||
} | ||
|
||
/** | ||
|
@@ -1056,7 +1056,7 @@ public static function getPhoneDevices(): array | |
*/ | ||
public static function getTabletDevices(): array | ||
{ | ||
return self::$tabletDevices; | ||
return static::$tabletDevices; | ||
} | ||
|
||
/** | ||
|
@@ -1066,7 +1066,7 @@ public static function getTabletDevices(): array | |
*/ | ||
public static function getUserAgents(): array | ||
{ | ||
return self::getBrowsers(); | ||
return static::getBrowsers(); | ||
} | ||
|
||
/** | ||
|
@@ -1076,7 +1076,7 @@ public static function getUserAgents(): array | |
*/ | ||
public static function getBrowsers(): array | ||
{ | ||
return self::$browsers; | ||
return static::$browsers; | ||
} | ||
|
||
/** | ||
|
@@ -1091,10 +1091,10 @@ public function getRules(): array | |
|
||
if (!$rules) { | ||
$rules = array_merge( | ||
self::$phoneDevices, | ||
self::$tabletDevices, | ||
self::$operatingSystems, | ||
self::$browsers | ||
static::$phoneDevices, | ||
This comment has been minimized.
Sorry, something went wrong. |
||
static::$tabletDevices, | ||
static::$operatingSystems, | ||
static::$browsers | ||
); | ||
} | ||
|
||
|
@@ -1108,7 +1108,7 @@ public function getRules(): array | |
*/ | ||
public static function getOperatingSystems(): array | ||
{ | ||
return self::$operatingSystems; | ||
return static::$operatingSystems; | ||
} | ||
|
||
/** | ||
|
@@ -1267,7 +1267,7 @@ public function isTablet(string $userAgent = null, array $httpHeaders = null): b | |
} | ||
} | ||
|
||
foreach (self::$tabletDevices as $_regex) { | ||
foreach (static::$tabletDevices as $_regex) { | ||
This comment has been minimized.
Sorry, something went wrong.
pquerner
|
||
if ($this->match($_regex, $userAgent)) { | ||
return true; | ||
} | ||
|
@@ -1342,7 +1342,7 @@ public function match(string $regex, string $userAgent = null): bool | |
*/ | ||
public static function getProperties(): array | ||
{ | ||
return self::$properties; | ||
return static::$properties; | ||
} | ||
|
||
/** | ||
|
getter here aswell