Skip to content

Template API

Template API #236

Triggered via pull request February 27, 2024 18:29
Status Failure
Total duration 44s
Artifacts

static.yml

on: pull_request
PHPStan
14s
PHPStan
PHP-CS-Fixer
11s
PHP-CS-Fixer
Psalm
33s
Psalm
Roave BC Check
2s
Roave BC Check
Composer Normalize
15s
Composer Normalize
Fit to window
Zoom out
Zoom in

Annotations

9 errors and 22 warnings
PHP-CS-Fixer
Process completed with exit code 1.
PHPStan: src/Model/Templates/Template.php#L49
Method Mailgun\Model\Templates\Template::create() should return static(Mailgun\Model\Templates\Template) but returns Mailgun\Model\Templates\Template.
PHPStan
Process completed with exit code 1.
Psalm: src/Api/Templates.php#L123
Type non-empty-array<array-key, mixed> for $headers is always array (see https://psalm.dev/122)
Psalm: src/Api/Templates.php#L123
Type non-empty-array<array-key, mixed> for $headers is always array (see https://psalm.dev/122)
Psalm: src/Api/Templates.php#L133
Argument 3 of Mailgun\Api\Templates::httpPost cannot be null, possibly null value provided (see https://psalm.dev/078)
Psalm: src/Model/Templates/Template.php#L36
The declared return type 'Mailgun\Model\Templates\Template&static' for Mailgun\Model\Templates\Template::create is more specific than the inferred return type 'Mailgun\Model\Templates\Template' (see https://psalm.dev/070)
Psalm: src/Model/Templates/Template.php#L49
The type 'Mailgun\Model\Templates\Template' is more general than the declared return type 'Mailgun\Model\Templates\Template&static' for Mailgun\Model\Templates\Template::create (see https://psalm.dev/129)
Psalm
Process completed with exit code 2.
Roave BC Check
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Roave BC Check
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/
PHP-CS-Fixer
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
PHP-CS-Fixer
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/
PHP-CS-Fixer: src/Model/Templates/Template.php#L1
Found violation(s) of type: phpdoc_var_without_name
PHP-CS-Fixer: src/Model/Templates/Template.php#L1
Found violation(s) of type: phpdoc_align
PHP-CS-Fixer: src/Model/Templates/GetResponse.php#L1
Found violation(s) of type: phpdoc_align
PHP-CS-Fixer: src/Model/Templates/CreateResponse.php#L1
Found violation(s) of type: phpdoc_align
PHP-CS-Fixer: src/Api/Templates.php#L1
Found violation(s) of type: method_argument_space
PHP-CS-Fixer: src/Api/Templates.php#L1
Found violation(s) of type: concat_space
PHP-CS-Fixer: src/Api/Templates.php#L1
Found violation(s) of type: trailing_comma_in_multiline
PHP-CS-Fixer: src/Api/Templates.php#L1
Found violation(s) of type: phpdoc_align
PHPStan
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, ramsey/composer-install@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
PHPStan
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, ramsey/composer-install@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
PHPStan
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
PHPStan
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
PHPStan
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Composer Normalize
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Composer Normalize
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/
Psalm
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, ramsey/composer-install@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Psalm
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, ramsey/composer-install@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Psalm
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/