Skip to content

Update order.php

Update order.php #12

Triggered via pull request February 22, 2024 18:23
Status Failure
Total duration 19s
Artifacts

php_stan.yml

on: pull_request
Run PHPStan
11s
Run PHPStan
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 2 warnings
Run PHPStan: class/order.php#L8
Property order::$con has no type specified.
Run PHPStan: class/order.php#L9
Property order::$customer_id has no type specified.
Run PHPStan: class/order.php#L17
Constructor of class order has an unused parameter $name.
Run PHPStan: class/order.php#L28
Method order::addReward() has no return type specified.
Run PHPStan: class/order.php#L30
Access to an undefined property object::$status.
Run PHPStan: class/order.php#L31
Access to an undefined property object::$price.
Run PHPStan: class/order.php#L32
Access to an undefined property object::$currency.
Run PHPStan: class/order.php#L35
Function convertCurrency not found.
Run PHPStan: class/order.php#L68
Parameter #1 $handle of function curl_setopt expects CurlHandle, CurlHandle|false given.
Run PHPStan: class/order.php#L69
Parameter #1 $handle of function curl_exec expects CurlHandle, CurlHandle|false given.
Run PHPStan
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/.
Run PHPStan
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/