Skip to content

Add phpstan to tribe-common #16

Add phpstan to tribe-common

Add phpstan to tribe-common #16

Triggered via pull request November 16, 2023 20:48
Status Failure
Total duration 1m 1s
Artifacts

phpstan.yml

on: pull_request
Matrix: phpstan
Fit to window
Zoom out
Zoom in

Annotations

50 errors and 5 warnings
phpstan (8.2): src/Common/Site_Health/Fields/Generic_Info_Field.php#L43
Unsafe usage of new static().
phpstan (8.2): src/Common/Site_Health/Fields/Generic_Info_Field.php#L59
Unsafe usage of new static().
phpstan (8.2): src/Common/Storage/Timed_Option.php#L100
Expected 2 @param tags, found 1.
phpstan (8.2): src/Common/Telemetry/Telemetry.php#L404
Expected 2 @param tags, found 1.
phpstan (8.2): src/Tribe/Admin/Activation_Page.php#L89
Action callback returns array but should not return anything.
phpstan (8.2): src/Tribe/Admin/Activation_Page.php#L90
Action callback returns array but should not return anything.
phpstan (8.2): src/Tribe/Admin/Activation_Page.php#L174
Expected 2 @param tags, found 1.
phpstan (8.2): src/Tribe/Admin/Activation_Page.php#L312
Action callback returns string|null but should not return anything.
phpstan (8.2): src/Tribe/Admin/Conditional_Content/Datetime_Conditional_Abstract.php#L86
@param tag must not be named $this. Choose a descriptive alias, for example $instance.
phpstan (7.4): src/Common/Site_Health/Fields/Generic_Info_Field.php#L43
Unsafe usage of new static().
phpstan (7.4): src/Common/Site_Health/Fields/Generic_Info_Field.php#L59
Unsafe usage of new static().
phpstan (7.4): src/Common/Storage/Timed_Option.php#L100
Expected 2 @param tags, found 1.
phpstan (7.4): src/Common/Telemetry/Telemetry.php#L404
Expected 2 @param tags, found 1.
phpstan (7.4): src/Tribe/Admin/Activation_Page.php#L89
Action callback returns array but should not return anything.
phpstan (7.4): src/Tribe/Admin/Activation_Page.php#L90
Action callback returns array but should not return anything.
phpstan (7.4): src/Tribe/Admin/Activation_Page.php#L174
Expected 2 @param tags, found 1.
phpstan (7.4): src/Tribe/Admin/Activation_Page.php#L312
Action callback returns string|null but should not return anything.
phpstan (7.4): src/Tribe/Admin/Conditional_Content/Datetime_Conditional_Abstract.php#L86
@param tag must not be named $this. Choose a descriptive alias, for example $instance.
phpstan (8.1): src/Common/Site_Health/Fields/Generic_Info_Field.php#L43
Unsafe usage of new static().
phpstan (8.1): src/Common/Site_Health/Fields/Generic_Info_Field.php#L59
Unsafe usage of new static().
phpstan (8.1): src/Common/Storage/Timed_Option.php#L100
Expected 2 @param tags, found 1.
phpstan (8.1): src/Common/Telemetry/Telemetry.php#L404
Expected 2 @param tags, found 1.
phpstan (8.1): src/Tribe/Admin/Activation_Page.php#L89
Action callback returns array but should not return anything.
phpstan (8.1): src/Tribe/Admin/Activation_Page.php#L90
Action callback returns array but should not return anything.
phpstan (8.1): src/Tribe/Admin/Activation_Page.php#L174
Expected 2 @param tags, found 1.
phpstan (8.1): src/Tribe/Admin/Activation_Page.php#L312
Action callback returns string|null but should not return anything.
phpstan (8.1): src/Tribe/Admin/Conditional_Content/Datetime_Conditional_Abstract.php#L86
@param tag must not be named $this. Choose a descriptive alias, for example $instance.
phpstan (8.3): src/Common/Site_Health/Fields/Generic_Info_Field.php#L43
Unsafe usage of new static().
phpstan (8.3): src/Common/Site_Health/Fields/Generic_Info_Field.php#L59
Unsafe usage of new static().
phpstan (8.3): src/Common/Storage/Timed_Option.php#L100
Expected 2 @param tags, found 1.
phpstan (8.3): src/Common/Telemetry/Telemetry.php#L404
Expected 2 @param tags, found 1.
phpstan (8.3): src/Tribe/Admin/Activation_Page.php#L89
Action callback returns array but should not return anything.
phpstan (8.3): src/Tribe/Admin/Activation_Page.php#L90
Action callback returns array but should not return anything.
phpstan (8.3): src/Tribe/Admin/Activation_Page.php#L174
Expected 2 @param tags, found 1.
phpstan (8.3): src/Tribe/Admin/Activation_Page.php#L312
Action callback returns string|null but should not return anything.
phpstan (8.3): src/Tribe/Admin/Conditional_Content/Datetime_Conditional_Abstract.php#L86
@param tag must not be named $this. Choose a descriptive alias, for example $instance.
phpstan (8.0): src/Common/Site_Health/Fields/Generic_Info_Field.php#L43
Unsafe usage of new static().
phpstan (8.0): src/Common/Site_Health/Fields/Generic_Info_Field.php#L59
Unsafe usage of new static().
phpstan (8.0): src/Common/Storage/Timed_Option.php#L100
Expected 2 @param tags, found 1.
phpstan (8.0): src/Common/Telemetry/Telemetry.php#L404
Expected 2 @param tags, found 1.
phpstan (8.0): src/Tribe/Admin/Activation_Page.php#L89
Action callback returns array but should not return anything.
phpstan (8.0): src/Tribe/Admin/Activation_Page.php#L90
Action callback returns array but should not return anything.
phpstan (8.0): src/Tribe/Admin/Activation_Page.php#L174
Expected 2 @param tags, found 1.
phpstan (8.0): src/Tribe/Admin/Activation_Page.php#L312
Action callback returns string|null but should not return anything.
phpstan (8.0): src/Tribe/Admin/Conditional_Content/Datetime_Conditional_Abstract.php#L86
@param tag must not be named $this. Choose a descriptive alias, for example $instance.
phpstan (8.2)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
phpstan (7.4)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
phpstan (8.1)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
phpstan (8.3)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
phpstan (8.0)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/