Make all classes final. #103
Annotations
8 errors and 1 warning
Run Psalm:
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)
|
Run Psalm:
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)
|
Run Psalm:
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)
|
Run Psalm:
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)
|
Run Psalm:
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)
|
Run Psalm:
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)
|
Run Psalm:
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)
|
Run Psalm
Process completed with exit code 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/.
|
Loading