Skip to content

Commit f68ea4b

Browse files
committed
Fixing PHPStan errors - #238
1 parent 204014d commit f68ea4b

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

src/classes/cli/commands/preload.class.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ public function execute(): void
3737
$execute("People", fn() => P::get_people());
3838
$execute("Refresh Daily Prayers", fn() => P::get_refresh());
3939
$execute("Rota", fn() => P::get_rota());
40+
41+
App::die("Done.");
4042
}
4143

4244

src/classes/preload/preload.class.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Preload
1616
/**
1717
* Preload Bible plan.
1818
*
19-
* @return array
19+
* @return mixed[]
2020
*/
2121
public static function get_bible_plan(): array
2222
{
@@ -26,7 +26,7 @@ public static function get_bible_plan(): array
2626
/**
2727
* Preload events from ChurchSuite Events API.
2828
*
29-
* @return array
29+
* @return mixed[]
3030
*/
3131
public static function get_events(): array
3232
{
@@ -47,7 +47,7 @@ public static function get_events(): array
4747
/**
4848
* Preload lectionary from Baserow.
4949
*
50-
* @return array
50+
* @return mixed[]
5151
*/
5252
public static function get_lectionary(): array
5353
{
@@ -57,7 +57,7 @@ public static function get_lectionary(): array
5757
/**
5858
* Preload people from ChurchSuite Address Book API.
5959
*
60-
* @return array
60+
* @return mixed[]
6161
*/
6262
public static function get_people(): array
6363
{
@@ -67,7 +67,7 @@ public static function get_people(): array
6767
/**
6868
* Preload Refresh daily prayers.
6969
*
70-
* @return array
70+
* @return mixed[]
7171
*/
7272
public static function get_refresh(): array
7373
{
@@ -77,7 +77,7 @@ public static function get_refresh(): array
7777
/**
7878
* Preload rota from ChurchSuite CSV export.
7979
*
80-
* @return array
80+
* @return mixed[]
8181
*/
8282
public static function get_rota(): array
8383
{

src/pages/bible/index-model.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class Index_Model
1111
/**
1212
* Create Index model.
1313
*
14-
* @param @string $ref The Bible passage reference.
14+
* @param ?string $ref The Bible passage reference.
1515
* @param ?string $text The text of the requested Bible passage.
1616
*/
1717
public function __construct(

0 commit comments

Comments
 (0)