Skip to content

Add phpstan to tribe-common #19

Add phpstan to tribe-common

Add phpstan to tribe-common #19

Triggered via pull request January 11, 2024 20:37
Status Failure
Total duration 56s
Artifacts

phpstan.yml

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

Annotations

50 errors and 5 warnings
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/Tribe/Admin/Activation_Page.php#L313
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.3): src/Tribe/Admin/Conditional_Content/Datetime_Conditional_Abstract.php#L113
@param tag must not be named $this. Choose a descriptive alias, for example $instance.
phpstan (8.3): src/Tribe/Admin/Conditional_Content/Datetime_Conditional_Abstract.php#L137
@param tag must not be named $this. Choose a descriptive alias, for example $instance.
phpstan (8.3): src/Tribe/Admin/Helpers.php#L49
One or more @param tags has an invalid name or invalid syntax.
phpstan (8.3): src/Tribe/Admin/Notice/Date_Based.php#L272
@param Tribe\Admin\Notice\Tribe__Admin__Notice_Date_Based $notice does not accept actual type of parameter: $this(Tribe\Admin\Notice\Date_Based).
phpstan (8.3): src/Tribe/Admin/Notice/Date_Based.php#L296
Expected 2 @param tags, found 1.
phpstan (8.3): src/Tribe/Admin/Notice/Date_Based.php#L322
Expected 2 @param tags, found 1.
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/Tribe/Admin/Activation_Page.php#L313
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.1): src/Tribe/Admin/Conditional_Content/Datetime_Conditional_Abstract.php#L113
@param tag must not be named $this. Choose a descriptive alias, for example $instance.
phpstan (8.1): src/Tribe/Admin/Conditional_Content/Datetime_Conditional_Abstract.php#L137
@param tag must not be named $this. Choose a descriptive alias, for example $instance.
phpstan (8.1): src/Tribe/Admin/Helpers.php#L49
One or more @param tags has an invalid name or invalid syntax.
phpstan (8.1): src/Tribe/Admin/Notice/Date_Based.php#L272
@param Tribe\Admin\Notice\Tribe__Admin__Notice_Date_Based $notice does not accept actual type of parameter: $this(Tribe\Admin\Notice\Date_Based).
phpstan (8.1): src/Tribe/Admin/Notice/Date_Based.php#L296
Expected 2 @param tags, found 1.
phpstan (8.1): src/Tribe/Admin/Notice/Date_Based.php#L322
Expected 2 @param tags, found 1.
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/Tribe/Admin/Activation_Page.php#L313
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 (8.2): src/Tribe/Admin/Conditional_Content/Datetime_Conditional_Abstract.php#L113
@param tag must not be named $this. Choose a descriptive alias, for example $instance.
phpstan (8.2): src/Tribe/Admin/Conditional_Content/Datetime_Conditional_Abstract.php#L137
@param tag must not be named $this. Choose a descriptive alias, for example $instance.
phpstan (8.2): src/Tribe/Admin/Helpers.php#L49
One or more @param tags has an invalid name or invalid syntax.
phpstan (8.2): src/Tribe/Admin/Notice/Date_Based.php#L272
@param Tribe\Admin\Notice\Tribe__Admin__Notice_Date_Based $notice does not accept actual type of parameter: $this(Tribe\Admin\Notice\Date_Based).
phpstan (8.2): src/Tribe/Admin/Notice/Date_Based.php#L296
Expected 2 @param tags, found 1.
phpstan (8.2): src/Tribe/Admin/Notice/Date_Based.php#L322
Expected 2 @param tags, found 1.
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/Tribe/Admin/Activation_Page.php#L313
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 (7.4): src/Tribe/Admin/Conditional_Content/Datetime_Conditional_Abstract.php#L113
@param tag must not be named $this. Choose a descriptive alias, for example $instance.
phpstan (7.4): src/Tribe/Admin/Conditional_Content/Datetime_Conditional_Abstract.php#L137
@param tag must not be named $this. Choose a descriptive alias, for example $instance.
phpstan (7.4): src/Tribe/Admin/Helpers.php#L49
One or more @param tags has an invalid name or invalid syntax.
phpstan (7.4): src/Tribe/Admin/Notice/Date_Based.php#L272
@param Tribe\Admin\Notice\Tribe__Admin__Notice_Date_Based $notice does not accept actual type of parameter: $this(Tribe\Admin\Notice\Date_Based).
phpstan (7.4): src/Tribe/Admin/Notice/Date_Based.php#L296
Expected 2 @param tags, found 1.
phpstan (7.4): src/Tribe/Admin/Notice/Date_Based.php#L322
Expected 2 @param tags, found 1.
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/Tribe/Admin/Activation_Page.php#L313
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.0): src/Tribe/Admin/Conditional_Content/Datetime_Conditional_Abstract.php#L113
@param tag must not be named $this. Choose a descriptive alias, for example $instance.
phpstan (8.0): src/Tribe/Admin/Conditional_Content/Datetime_Conditional_Abstract.php#L137
@param tag must not be named $this. Choose a descriptive alias, for example $instance.
phpstan (8.0): src/Tribe/Admin/Helpers.php#L49
One or more @param tags has an invalid name or invalid syntax.
phpstan (8.0): src/Tribe/Admin/Notice/Date_Based.php#L272
@param Tribe\Admin\Notice\Tribe__Admin__Notice_Date_Based $notice does not accept actual type of parameter: $this(Tribe\Admin\Notice\Date_Based).
phpstan (8.0): src/Tribe/Admin/Notice/Date_Based.php#L296
Expected 2 @param tags, found 1.
phpstan (8.0): src/Tribe/Admin/Notice/Date_Based.php#L322
Expected 2 @param tags, found 1.
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.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.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.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/