summaryrefslogtreecommitdiffstats
path: root/app/classes/Opml.php
diff options
context:
space:
mode:
authorrdalverny <rdalverny@gmail.com>2022-01-22 19:53:01 +0100
committerrdalverny <rdalverny@gmail.com>2022-01-22 19:53:01 +0100
commit5a0c2d333ff41ec4da6a4d58bc1553beeee1affa (patch)
treea6f2f62d76535a2e47085173c560be77b0214e15 /app/classes/Opml.php
parentc27c9d1d359828a071159995689c9c3b28d99891 (diff)
downloadplanet-5a0c2d333ff41ec4da6a4d58bc1553beeee1affa.tar
planet-5a0c2d333ff41ec4da6a4d58bc1553beeee1affa.tar.gz
planet-5a0c2d333ff41ec4da6a4d58bc1553beeee1affa.tar.bz2
planet-5a0c2d333ff41ec4da6a4d58bc1553beeee1affa.tar.xz
planet-5a0c2d333ff41ec4da6a4d58bc1553beeee1affa.zip
More type hints
Diffstat (limited to 'app/classes/Opml.php')
-rw-r--r--app/classes/Opml.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/app/classes/Opml.php b/app/classes/Opml.php
index b91b43e..4920af1 100644
--- a/app/classes/Opml.php
+++ b/app/classes/Opml.php
@@ -14,8 +14,10 @@ class Opml
public string $title = '';
- /** @var array<int, string> */
+ /** @var array<int, array<mixed>> */
public $entries = array();
+
+ /** @var array<string, string> */
private $map =
array(
'URL' => 'website',
@@ -30,7 +32,7 @@ class Opml
/**
* @param string $data
- * @return array<int, string>
+ * @return array<int, array<mixed>>
*/
public function parse(string $data) : array
{
@@ -99,7 +101,7 @@ class Opml
}
/**
- * @return array<int, string>
+ * @return array<int, array<mixed>>
*/
public function getPeople() : array
{