✨ feat: add segment disable/enable API for translation cancel requests #125
phpstan.yml
on: pull_request
Run PHPStan scanning
59s
Annotations
10 errors and 1 warning
|
Run PHPStan scanning:
lib/Controller/Traits/ChunkNotFoundHandlerTrait.php (in context of class Controller/API/V3/CancelRequestController)#L25
Method Controller\API\V3\CancelRequestController::getJob() has parameter $id_job with no type specified.
|
|
Run PHPStan scanning:
lib/Controller/API/V3/SegmentAnalysisController.php#L370
Access to an undefined property Model\DataAccess\IDaoStruct::$id.
|
|
Run PHPStan scanning:
lib/Controller/API/V3/SegmentAnalysisController.php#L355
Access to an undefined property Model\DataAccess\IDaoStruct::$id_job.
|
|
Run PHPStan scanning:
lib/Controller/API/V3/SegmentAnalysisController.php#L327
Ignored error pattern #^Access to an undefined property Model\\DataAccess\\IDaoStruct\:\:\$id_job\.$# (property.notFound) in path /home/runner/work/MateCat/MateCat/lib/Controller/API/V3/SegmentAnalysisController.php is expected to occur 3 times, but occurred 4 times.
|
|
Run PHPStan scanning:
lib/Controller/API/V3/SegmentAnalysisController.php#L316
Ignored error pattern #^Access to an undefined property Model\\DataAccess\\IDaoStruct\:\:\$id\.$# (property.notFound) in path /home/runner/work/MateCat/MateCat/lib/Controller/API/V3/SegmentAnalysisController.php is expected to occur 6 times, but occurred 7 times.
|
|
Run PHPStan scanning:
lib/Controller/API/V3/CancelRequestController.php#L153
Cannot call method hasUser() on Model\Teams\TeamStruct|null.
|
|
Run PHPStan scanning:
lib/Controller/API/V3/CancelRequestController.php#L150
Cannot access property $created_by on Model\Teams\TeamStruct|null.
|
|
Run PHPStan scanning:
lib/Controller/API/V3/CancelRequestController.php#L40
Property Controller\API\V3\CancelRequestController::$userIp is unused.
|
|
Run PHPStan scanning:
lib/Controller/API/V3/CancelRequestController.php#L39
Property Controller\API\V3\CancelRequestController::$userEmail is unused.
|
|
Run PHPStan scanning:
lib/Controller/API/V3/CancelRequestController.php#L38
Property Controller\API\V3\CancelRequestController::$route is unused.
|
|
Run PHPStan scanning
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|