Skip to content

Commit 72c1436

Browse files
committed
Deprecate GeoIP::$remote_ip
1 parent 3b11696 commit 72c1436

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

psalm-baseline.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@
8888
<code><![CDATA[$this->service === null]]></code>
8989
</DocblockTypeContradiction>
9090
<InvalidPropertyAssignmentValue>
91-
<code><![CDATA[$this->default_location]]></code>
9291
<code><![CDATA[new Cache(
9392
$cache,
9493
$this->config('cache_tags'),
@@ -110,6 +109,9 @@
110109
<code><![CDATA[$this->config('cache_tags')]]></code>
111110
<code><![CDATA[$this->config('default_location', [])]]></code>
112111
</MixedArgument>
112+
<MixedArgumentTypeCoercion>
113+
<code><![CDATA[$this->default_location]]></code>
114+
</MixedArgumentTypeCoercion>
113115
<MixedAssignment>
114116
<code><![CDATA[$class]]></code>
115117
<code><![CDATA[$config]]></code>

src/GeoIP.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ class GeoIP
2323

2424
/**
2525
* Remote Machine IP address.
26+
* @deprecated Use {@see self::getClientIP()} instead.
2627
*
2728
* @var string
2829
*/

0 commit comments

Comments
 (0)