Skip to content

Make all classes final. #103

Make all classes final.

Make all classes final. #103

Triggered via push May 3, 2024 08:17
Status Failure
Total duration 53s
Artifacts

ci.yaml

on: push
Matrix: phplint / phplint
Matrix: phpunit / phpunit
Fit to window
Zoom out
Zoom in

Annotations

15 errors and 18 warnings
phpcs / phpcs: src/ReturnController.php#L15
Type WP_REST_Server is not used in this file.
phpcs / phpcs: src/ReturnController.php#L54
Unused parameter $wp_rest_server.
phpcs / phpcs: src/WebhookController.php#L15
Type WP_REST_Server is not used in this file.
phpcs / phpcs: src/WebhookController.php#L44
Unused parameter $wp_rest_server.
phpcs / phpcs
Process completed with exit code 1.
phpstan / phpstan: src/Client.php#L56
Property Pronamic\WordPress\Pay\Gateways\OmniKassa2\Client::$signing_key is never read, only written.
phpstan / phpstan
Process completed with exit code 1.
PropertyNotSetInConstructor: src/Config.php#L29
src/Config.php:29:9: PropertyNotSetInConstructor: Property Pronamic\WordPress\Pay\Gateways\OmniKassa2\Config::$post_id is not defined in constructor of Pronamic\WordPress\Pay\Gateways\OmniKassa2\Config or in any methods called in the constructor (see https://psalm.dev/074)
PropertyNotSetInConstructor: src/Config.php#L43
src/Config.php:43:9: PropertyNotSetInConstructor: Property Pronamic\WordPress\Pay\Gateways\OmniKassa2\Config::$refresh_token is not defined in constructor of Pronamic\WordPress\Pay\Gateways\OmniKassa2\Config or in any methods called in the constructor (see https://psalm.dev/074)
PropertyNotSetInConstructor: src/Config.php#L50
src/Config.php:50:9: PropertyNotSetInConstructor: Property Pronamic\WordPress\Pay\Gateways\OmniKassa2\Config::$signing_key is not defined in constructor of Pronamic\WordPress\Pay\Gateways\OmniKassa2\Config or in any methods called in the constructor (see https://psalm.dev/074)
PropertyNotSetInConstructor: src/Config.php#L57
src/Config.php:57:9: PropertyNotSetInConstructor: Property Pronamic\WordPress\Pay\Gateways\OmniKassa2\Config::$access_token is not defined in constructor of Pronamic\WordPress\Pay\Gateways\OmniKassa2\Config or in any methods called in the constructor (see https://psalm.dev/074)
PropertyNotSetInConstructor: src/Config.php#L64
src/Config.php:64:9: PropertyNotSetInConstructor: Property Pronamic\WordPress\Pay\Gateways\OmniKassa2\Config::$access_token_valid_until is not defined in constructor of Pronamic\WordPress\Pay\Gateways\OmniKassa2\Config or in any methods called in the constructor (see https://psalm.dev/074)
PropertyNotSetInConstructor: src/Config.php#L71
src/Config.php:71:9: PropertyNotSetInConstructor: Property Pronamic\WordPress\Pay\Gateways\OmniKassa2\Config::$order_id is not defined in constructor of Pronamic\WordPress\Pay\Gateways\OmniKassa2\Config or in any methods called in the constructor (see https://psalm.dev/074)
RiskyTruthyFalsyComparison: src/Integration.php#L150
src/Integration.php:150:8: RiskyTruthyFalsyComparison: Operand of type false|int contains type int, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
psalm / psalm
Process completed with exit code 2.
phplint / PHP 8.1
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
phplint / PHP 8.3
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
phpunit / PHP 8.3 WordPress 6.3
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
phpunit / PHP 8.2 WordPress 6.3
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
phpunit / PHP 8.3 WordPress 6.5
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
phpunit / PHP 8.2 WordPress 6.4
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
coverage / coverage
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, codecov/codecov-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
phpunit / PHP 8.1 WordPress 6.4
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
phpcs / phpcs
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
phpcs / phpcs: src/ReturnController.php#L54
The method parameter $wp_rest_server is never used
phpcs / phpcs: src/WebhookController.php#L44
The method parameter $wp_rest_server is never used
phpunit / PHP 8.2 WordPress 6.5
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
phpunit / PHP 8.3 WordPress 6.4
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
phpunit / PHP 8.1 WordPress 6.3
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
phpstan / phpstan
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
phpunit / PHP 8.1 WordPress 6.5
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
phplint / PHP 8.2
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
psalm / psalm
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.