mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-26 22:14:39 +01:00
Fix psalm
This commit is contained in:
parent
264c3c9eee
commit
f04d072af0
@ -3100,7 +3100,6 @@
|
|||||||
<code><![CDATA[new PeerDatabase($this)]]></code>
|
<code><![CDATA[new PeerDatabase($this)]]></code>
|
||||||
</DocblockTypeContradiction>
|
</DocblockTypeContradiction>
|
||||||
<ImpureMethodCall>
|
<ImpureMethodCall>
|
||||||
<code><![CDATA[getPid]]></code>
|
|
||||||
<code><![CDATA[load]]></code>
|
<code><![CDATA[load]]></code>
|
||||||
<code><![CDATA[load]]></code>
|
<code><![CDATA[load]]></code>
|
||||||
<code><![CDATA[updateDefault]]></code>
|
<code><![CDATA[updateDefault]]></code>
|
||||||
@ -3114,12 +3113,6 @@
|
|||||||
<InvalidArgument>
|
<InvalidArgument>
|
||||||
<code><![CDATA[$callbacks]]></code>
|
<code><![CDATA[$callbacks]]></code>
|
||||||
<code><![CDATA[$callbacks]]></code>
|
<code><![CDATA[$callbacks]]></code>
|
||||||
<code><![CDATA[[
|
|
||||||
'php_version' => PHP_VERSION,
|
|
||||||
'php_version_id' => PHP_VERSION_ID,
|
|
||||||
'madeline_version' => API::RELEASE,
|
|
||||||
'pid' => Magic::getPid() ?? 'unknown',
|
|
||||||
]]]></code>
|
|
||||||
</InvalidArgument>
|
</InvalidArgument>
|
||||||
<InvalidReturnStatement>
|
<InvalidReturnStatement>
|
||||||
<code><![CDATA[array_merge(
|
<code><![CDATA[array_merge(
|
||||||
|
@ -936,7 +936,6 @@ final class MTProto implements TLCallback, LoggerGetter, SettingsGetter
|
|||||||
$info = $this->getPromGauge("MadelineProto", "version", "Info about the MadelineProto instance");
|
$info = $this->getPromGauge("MadelineProto", "version", "Info about the MadelineProto instance");
|
||||||
$info?->set(1, [
|
$info?->set(1, [
|
||||||
'php_version' => PHP_VERSION,
|
'php_version' => PHP_VERSION,
|
||||||
'php_version_id' => PHP_VERSION_ID,
|
|
||||||
'madeline_version' => API::RELEASE,
|
'madeline_version' => API::RELEASE,
|
||||||
]);
|
]);
|
||||||
$endpoint = $this->getSettings()->getPrometheus()->getMetricsBindTo();
|
$endpoint = $this->getSettings()->getPrometheus()->getMetricsBindTo();
|
||||||
|
Loading…
Reference in New Issue
Block a user