Skip to content

Commit

Permalink
Fix CS issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Girgias authored and isfedorov committed Dec 14, 2024
1 parent 2632ba1 commit 09c9a72
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 0 additions & 2 deletions bcmath/bcmath.php
Original file line number Diff line number Diff line change
Expand Up @@ -275,9 +275,7 @@ function bcdivmod(string $num1, string $num2, ?int $scale = null): array {}
*/
final readonly class Number implements \Stringable
{

public readonly string $value;

public readonly int $scale;

public function __construct(string|int $num) {}
Expand Down
1 change: 0 additions & 1 deletion random/random.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ function random_int(int $min, int $max): int {}

namespace Random\Engine
{

use const MT_RAND_MT19937;

/**
Expand Down
6 changes: 3 additions & 3 deletions tests/TestData/Providers/Stubs/StubsParametersProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,16 +138,16 @@ private static function yieldFilteredMethodParameters(string $classType, callabl
fn ($class) => array_filter(
array_map(
fn (PHPMethod $method) => array_filter(
EntitiesFilter::getFilteredParameters($method, null, ...$problemTypes),
function ($parameter) use ($filterFunction, $class, $method) {
EntitiesFilter::getFilteredParameters($method, null, ...$problemTypes),
function ($parameter) use ($filterFunction, $class, $method) {
if (!empty($parameter->availableVersionsRangeFromAttribute)) {
$firstSinceVersion = max(ParserUtils::getDeclaredSinceVersion($method), min($parameter->availableVersionsRangeFromAttribute));
} else {
$firstSinceVersion = ParserUtils::getDeclaredSinceVersion($method);
}
return $filterFunction($class, $method, $firstSinceVersion) === true;
}
),
),
EntitiesFilter::getFilteredStubsMethods($class)
),
fn ($parameters) => !empty($parameters)
Expand Down

0 comments on commit 09c9a72

Please sign in to comment.