Skip to content

Start fixing phpstan fails #5

Start fixing phpstan fails

Start fixing phpstan fails #5

Triggered via pull request November 1, 2023 16:28
Status Failure
Total duration 1m 25s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

phpstan.yml

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

Annotations

50 errors and 5 warnings
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/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.0): src/Tribe/Admin/Notice/Date_Based.php#L353
Expected 2 @param tags, found 1.
phpstan (8.0): src/Tribe/Admin/Notice/Marketing.php#L94
@param int $bf_start_date does not accept actual type of parameter: numeric-string.
phpstan (8.0): src/Tribe/Admin/Notice/Marketing.php#L120
@param int $bf_end_date does not accept actual type of parameter: numeric-string.
phpstan (8.0): src/Tribe/Admin/Notice/Php_Version.php#L32
Call to deprecated method instance() of class Tribe__Dependency: 4.9.12 We shouldn't be handling singletons internally.
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/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.1): src/Tribe/Admin/Notice/Date_Based.php#L353
Expected 2 @param tags, found 1.
phpstan (8.1): src/Tribe/Admin/Notice/Marketing.php#L94
@param int $bf_start_date does not accept actual type of parameter: numeric-string.
phpstan (8.1): src/Tribe/Admin/Notice/Marketing.php#L120
@param int $bf_end_date does not accept actual type of parameter: numeric-string.
phpstan (8.1): src/Tribe/Admin/Notice/Php_Version.php#L32
Call to deprecated method instance() of class Tribe__Dependency: 4.9.12 We shouldn't be handling singletons internally.
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/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 (7.4): src/Tribe/Admin/Notice/Date_Based.php#L353
Expected 2 @param tags, found 1.
phpstan (7.4): src/Tribe/Admin/Notice/Marketing.php#L94
@param int $bf_start_date does not accept actual type of parameter: numeric-string.
phpstan (7.4): src/Tribe/Admin/Notice/Marketing.php#L120
@param int $bf_end_date does not accept actual type of parameter: numeric-string.
phpstan (7.4): src/Tribe/Admin/Notice/Php_Version.php#L32
Call to deprecated method instance() of class Tribe__Dependency: 4.9.12 We shouldn't be handling singletons internally.
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/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.3): src/Tribe/Admin/Notice/Date_Based.php#L353
Expected 2 @param tags, found 1.
phpstan (8.3): src/Tribe/Admin/Notice/Marketing.php#L94
@param int $bf_start_date does not accept actual type of parameter: numeric-string.
phpstan (8.3): src/Tribe/Admin/Notice/Marketing.php#L120
@param int $bf_end_date does not accept actual type of parameter: numeric-string.
phpstan (8.3): src/Tribe/Admin/Notice/Php_Version.php#L32
Call to deprecated method instance() of class Tribe__Dependency: 4.9.12 We shouldn't be handling singletons internally.
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/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 (8.2): src/Tribe/Admin/Notice/Date_Based.php#L353
Expected 2 @param tags, found 1.
phpstan (8.2): src/Tribe/Admin/Notice/Marketing.php#L94
@param int $bf_start_date does not accept actual type of parameter: numeric-string.
phpstan (8.2): src/Tribe/Admin/Notice/Marketing.php#L120
@param int $bf_end_date does not accept actual type of parameter: numeric-string.
phpstan (8.2): src/Tribe/Admin/Notice/Php_Version.php#L32
Call to deprecated method instance() of class Tribe__Dependency: 4.9.12 We shouldn't be handling singletons internally.
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/
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 (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.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.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/