Skip to content

Commit

Permalink
Applied v5 dependencies and PHP 8.4 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
fulopattila122 committed Mar 4, 2025
1 parent 7e863f8 commit 0cff630
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 7 deletions.
9 changes: 9 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Vanilo Support Module Changelog

## 5.x Series

## Unreleased
##### 2025-XX-XX

- Dropped PHP 8.2 Support
- Added Laravel 12 Support
- PHP 8.4 deprecation fixes

## 4.x Series

## 4.2.0
Expand Down
2 changes: 1 addition & 1 deletion Dto/SchemaDefinition.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function getSchema(): Schema
return $this->schema;
}

public function getSchemaSample(array $mergeWith = null): array
public function getSchemaSample(?array $mergeWith = null): array
{
return $this->sample;
}
Expand Down
2 changes: 1 addition & 1 deletion Generators/NanoIdGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class NanoIdGenerator

private $size = 21;

public function __construct(int $size = null, string $alphabet = null)
public function __construct(?int $size = null, ?string $alphabet = null)
{
$this->alphabet = $alphabet ?? self::ALPHABET;
$this->size = $size ?? $this->size;
Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
}
],
"require": {
"php": "^8.2",
"illuminate/support": "^10.43|^11.0",
"php": "^8.3",
"illuminate/support": "^10.48|^11.0|^12.0",
"nette/schema": "^1.2",
"vanilo/contracts": "^4.0"
"vanilo/contracts": "^5.0"
},
"require-dev": {
"phpunit/phpunit": "^10.0",
"illuminate/database": "^10.0|^11.0"
"phpunit/phpunit": "^10.0|^11.0",
"illuminate/database": "^10.48|^11.0|^12.0"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit 0cff630

Please sign in to comment.