Skip to content

Template API

Template API #238

Triggered via pull request February 29, 2024 17:05
Status Failure
Total duration 41s
Artifacts

static.yml

on: pull_request
PHPStan
12s
PHPStan
PHP-CS-Fixer
18s
PHP-CS-Fixer
Psalm
30s
Psalm
Roave BC Check
8s
Roave BC Check
Composer Normalize
10s
Composer Normalize
Fit to window
Zoom out
Zoom in

Annotations

9 errors and 14 warnings
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: src/Model/Templates/Template.php#L65
$this->id with non-nullable declared type 'string' cannot be assigned nullable type 'null|string' (see https://psalm.dev/148)
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/
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/
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/
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/