Skip to content

Commit c3532be

Browse files
PHPStan followup
1 parent 202038e commit c3532be

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

hook.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,16 @@
3333

3434
/**
3535
* Plugin install process
36-
*
37-
* @return boolean
3836
*/
39-
function plugin_advancedforms_install()
37+
function plugin_advancedforms_install(): bool
4038
{
4139
return true;
4240
}
4341

4442
/**
4543
* Plugin uninstall process
46-
*
47-
* @return boolean
4844
*/
49-
function plugin_advancedforms_uninstall()
45+
function plugin_advancedforms_uninstall(): bool
5046
{
5147
return true;
5248
}

phpstan.neon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ parameters:
99
bootstrapFiles:
1010
- ../../stubs/glpi_constants.php
1111
- ../../vendor/autoload.php
12-
12+
treatPhpDocTypesAsCertain: false

setup.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ function plugin_version_advancedforms(): array
8585

8686
/**
8787
* Check pre-requisites before install
88-
* OPTIONNAL, but recommanded
88+
* OPTIONNAL, but recommended
8989
*/
9090
function plugin_advancedforms_check_prerequisites(): bool
9191
{
@@ -95,9 +95,9 @@ function plugin_advancedforms_check_prerequisites(): bool
9595
/**
9696
* Check configuration process
9797
*
98-
* @param boolean $verbose Whether to display message on failure. Defaults to false
98+
* @param bool $verbose Whether to display message on failure. Defaults to false.
9999
*/
100-
function plugin_advancedforms_check_config($verbose = false): bool
100+
function plugin_advancedforms_check_config(bool $verbose = false): bool
101101
{
102102
return true;
103103
}

0 commit comments

Comments
 (0)