Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"homepage": "https://php-collective.github.io/dto/",
"require": {
"php": "^8.2",
"sebastian/diff": "^6.0 || ^7.0 || ^8.0",
"sebastian/diff": "^6.0 || ^7.0 || ^8.0 || ^9.0",
"twig/twig": "^3.0"
},
"require-dev": {
Expand Down
4 changes: 2 additions & 2 deletions src/Config/FieldBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ public function maxLength(int $length): static
/**
* Set minimum numeric value validation.
*/
public function min(int|float $value): static
public function min(float|int $value): static
{
$this->min = $value;

Expand All @@ -368,7 +368,7 @@ public function min(int|float $value): static
/**
* Set maximum numeric value validation.
*/
public function max(int|float $value): static
public function max(float|int $value): static
{
$this->max = $value;

Expand Down
2 changes: 1 addition & 1 deletion src/Generator/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ protected function finder(): FinderInterface
*
* @return array<string>
*/
protected function normalizeTraits(string|array|null $traits): array
protected function normalizeTraits(array|string|null $traits): array
{
if ($traits === null || $traits === '' || $traits === []) {
return [];
Expand Down
1 change: 0 additions & 1 deletion src/Generator/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ public function generate(string $configPath, string $srcPath, array $options = [

// Output any warnings from field validation
foreach ($this->builder->getWarnings() as $warning) {
/** @phpstan-ignore function.alreadyNarrowedType (runtime check for custom IoInterface implementations) */
if (method_exists($this->io, 'warning')) {
$this->io->warning($warning);
}
Expand Down
Loading