Skip to content

perf(integers): add UInt8::of() and Byte::of() flyweight caches

7543b37
Select commit
Loading
Failed to load commit list.
Merged

Perf/optimizations #17

perf(integers): add UInt8::of() and Byte::of() flyweight caches
7543b37
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed May 28, 2026 in 21s

Quality Gate failed

Annotations

Check failure on line 54 in src/Abstract/AbstractFloat.php

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "Value %f is out of range for this float type. Allowed range: [%f, %f]" 5 times.

See more on https://sonarcloud.io/project/issues?id=Nejcc_php-datatypes&issues=AZ5uVCErMpuIGLYezALm&open=AZ5uVCErMpuIGLYezALm&pullRequest=17

Check failure on line 16 in src/Traits/BigArithmeticOperationsTrait.php

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "Result is out of bounds." 10 times.

See more on https://sonarcloud.io/project/issues?id=Nejcc_php-datatypes&issues=AZ5uVCIRMpuIGLYezALp&open=AZ5uVCIRMpuIGLYezALp&pullRequest=17

Check failure on line 50 in src/Abstract/AbstractFloat.php

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "INF and -INF are not allowed for this float type." 5 times.

See more on https://sonarcloud.io/project/issues?id=Nejcc_php-datatypes&issues=AZ5uVCErMpuIGLYezALn&open=AZ5uVCErMpuIGLYezALn&pullRequest=17

Check warning on line 173 in benchmarks/ArrayBenchmark.php

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused "$array" local variable.

See more on https://sonarcloud.io/project/issues?id=Nejcc_php-datatypes&issues=AZ5uVCTAMpuIGLYezALr&open=AZ5uVCTAMpuIGLYezALr&pullRequest=17

Check failure on line 16 in src/Traits/NativeArithmeticOperationsTrait.php

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "Result is out of bounds." 10 times.

See more on https://sonarcloud.io/project/issues?id=Nejcc_php-datatypes&issues=AZ5uVCIAMpuIGLYezALo&open=AZ5uVCIAMpuIGLYezALo&pullRequest=17

Check warning on line 140 in benchmarks/IntegerBenchmark.php

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused "$int" local variable.

See more on https://sonarcloud.io/project/issues?id=Nejcc_php-datatypes&issues=AZ5uVCSkMpuIGLYezALq&open=AZ5uVCSkMpuIGLYezALq&pullRequest=17