Replace rand with random_int and remove fallback try-catch.
#758
Annotations
14 errors and 2 warnings
|
Run PHPStan (3)
Process completed with exit code 1.
|
|
Run PHPStan (3):
src/php/GenerateJSCode.php#L301
Function random_int invoked with 0 parameters, 2 required.
|
|
Run PHPStan (3):
src/php/GenerateJSCode.php#L300
Function random_int invoked with 0 parameters, 2 required.
|
|
Run PHPStan (4)
The strategy configuration was canceled because "run._3" failed
|
|
Run PHPStan (4):
src/php/Messaging/OME.php#L667
Method INTERMediator\Messaging\OME::recepientsArray() is unused.
|
|
Run PHPStan (4):
src/php/GenerateJSCode.php#L301
Function random_int invoked with 0 parameters, 2 required.
|
|
Run PHPStan (4):
src/php/GenerateJSCode.php#L300
Function random_int invoked with 0 parameters, 2 required.
|
|
Run PHPStan (4):
src/php/DB/FileMaker_DataAPI.php#L1475
Right side of && is always true.
|
|
Run PHPStan (4):
src/php/DB/FileMaker_DataAPI.php#L1023
Unreachable statement - code above always terminates.
|
|
Run PHPStan (4):
src/php/DB/FileMaker_DataAPI.php#L1012
Strict comparison using !== between class-string<stdClass> and 'INTERMediator\\FileMakerServer\\RESTAPI\\Supporting\\FileMakerRelation' will always evaluate to true.
|
|
Run PHPStan (4):
src/php/DB/FileMaker_DataAPI.php#L994
Strict comparison using === between 1 and 1 will always evaluate to true.
|
|
Run PHPStan (4):
src/php/DB/FileMaker_DataAPI.php#L806
Empty array passed to foreach.
|
|
Run PHPStan (4):
src/php/DB/FileMaker_DataAPI.php#L778
Comparison operation ">=" between 0 and 1 is always false.
|
|
Run PHPStan (4):
src/php/DB/FileMaker_DataAPI.php#L301
Method INTERMediator\DB\FileMaker_DataAPI::stringReturnOnly() is unused.
|
|
Run PHPStan (3)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4, shivammathur/setup-php@cf4cade2721270509d5b1c766ab3549210a39a2a. 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/
|
|
Run PHPStan (4)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4, shivammathur/setup-php@cf4cade2721270509d5b1c766ab3549210a39a2a. 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/
|