Skip to content

feat: use translation in block patterns #5114

feat: use translation in block patterns

feat: use translation in block patterns #5114

Triggered via pull request October 29, 2024 14:10
Status Failure
Total duration 7m 57s
Artifacts

test-php.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 13 warnings
PHPStan: plugins/otter-pro/inc/plugins/class-patterns.php#L144
Parameter #2 $pattern_properties of function register_block_pattern expects array{title?: string, content?: string, description?: string, viewportWidth?: int, inserter?: bool, categories?: array<string>, keywords?: array<string>, blockTypes?: array<string>, ...}, string given.
PHPStan: plugins/otter-pro/inc/plugins/class-patterns.php#L172
Method ThemeIsle\OtterPro\Plugins\Patterns::prepare_block_pattern() should return string but returns array.
PHPStan
Process completed with exit code 1.
UnitTests
Your workflow is using a version of actions/cache that is scheduled for deprecation, actions/cache@v1. Please update your workflow to use the latest version of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-09-16-notice-of-upcoming-deprecations-and-changes-in-github-actions-services/
PHPStan
Your workflow is using a version of actions/cache that is scheduled for deprecation, actions/cache@v1. Please update your workflow to use the latest version of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-09-16-notice-of-upcoming-deprecations-and-changes-in-github-actions-services/
Phplint
Your workflow is using a version of actions/cache that is scheduled for deprecation, actions/cache@v1. Please update your workflow to use the latest version of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-09-16-notice-of-upcoming-deprecations-and-changes-in-github-actions-services/
PHPStan
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@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 following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/cache@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
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/
Phplint
The following actions uses node12 which is deprecated and will be forced to run on node16: shivammathur/setup-php@v1, actions/checkout@v2, actions/cache@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Phplint
The following actions use a deprecated Node.js version and will be forced to run on node20: shivammathur/setup-php@v1, actions/checkout@v2, actions/cache@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Phplint
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/
Phplint
setup-php v1 is deprecated. Please upgrade to v2 - https://setup-php.com/w/Switch-to-v2
UnitTests
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
UnitTests
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/cache@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
UnitTests
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/