summaryrefslogtreecommitdiff
path: root/classes/PluginHost.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2024-03-26 17:11:56 +0000
committerAndrew Dolgov <[email protected]>2024-03-26 17:11:56 +0000
commit435c321caaf3ae7aca936f175348d9efb40d6419 (patch)
treed64d45215fa331dca8c489e9b9fbbc9e04cb5eda /classes/PluginHost.php
parentfea3089bde5b4abfdcc8b5a0314a7f82fcf25bea (diff)
parentde00a095387499cdb5c8eb9c0ab721d67bd0b3fa (diff)
Merge branch 'feature/php84-explicit-nullable-params' into 'master'
Make implicitly nullable parameters explicitly nullable. See merge request tt-rss/tt-rss!26
Diffstat (limited to 'classes/PluginHost.php')
-rw-r--r--classes/PluginHost.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/PluginHost.php b/classes/PluginHost.php
index e39273672..2098be4e6 100644
--- a/classes/PluginHost.php
+++ b/classes/PluginHost.php
@@ -429,7 +429,7 @@ class PluginHost {
/**
* @param PluginHost::KIND_* $kind
*/
- function load_all(int $kind, int $owner_uid = null, bool $skip_init = false): void {
+ function load_all(int $kind, ?int $owner_uid = null, bool $skip_init = false): void {
$span = Tracer::start(__METHOD__);
$span->setAttribute('func.args', json_encode(func_get_args()));
@@ -447,7 +447,7 @@ class PluginHost {
/**
* @param PluginHost::KIND_* $kind
*/
- function load(string $classlist, int $kind, int $owner_uid = null, bool $skip_init = false): void {
+ function load(string $classlist, int $kind, ?int $owner_uid = null, bool $skip_init = false): void {
$span = Tracer::start(__METHOD__);
$span->setAttribute('func.args', json_encode(func_get_args()));