Skip to content

Allow sampling from uniform and categorical distributions #179

Allow sampling from uniform and categorical distributions

Allow sampling from uniform and categorical distributions #179

Triggered via pull request December 1, 2024 00:32
Status Failure
Total duration 2m 6s
Artifacts

test_pull_request.yml

on: pull_request
Matrix: Code coverage
Matrix: Static Analysis
Matrix: Test and Lint
Fit to window
Zoom out
Zoom in

Annotations

4 errors
Static Analysis (7.2): src/Number/ArbitraryInteger.php#L83
Parameter #1 $number of static method MathPHP\Functions\BaseEncoderDecoder::createArbitraryInteger() expects string, string|false given.
Static Analysis (7.2): src/Probability/Distribution/Discrete/Categorical.php#L173
Method MathPHP\Probability\Distribution\Discrete\Categorical::rand() should return int|string but returns int|string|null.
Static Analysis (7.2): src/Probability/Distribution/Discrete/Uniform.php#L165
Parameter #2 $max of function random_int expects int, float given.
Static Analysis (7.2)
Process completed with exit code 1.