diff options
| author | im <ilia@mikhailov.se> | 2025-09-10 21:00:46 +0200 |
|---|---|---|
| committer | im <ilia@mikhailov.se> | 2025-09-10 21:00:46 +0200 |
| commit | e794451e6b7eb6e21b9ec5209de7b5e72aeaffee (patch) | |
| tree | c95e9692043ec8cdec6c1709eb95aa52c7d194e0 | |
| parent | 9a1dbff5c7c722fea75c9afd6c024100006bba93 (diff) | |
Upgrade to Carbon v3 and PHP 8.1+v5.0.0
- Update nesbot/carbon from ^2.42 to ^3.0
- Update PHP requirement from ^7.4||^8.0 to ^8.1
- Fix nullable parameter syntax in ScoTracking::setLatestDate()
- Remove version field from composer.json for GitHub hosting
BREAKING CHANGE: Requires PHP 8.1+ due to Carbon v3 dependency
| -rw-r--r-- | composer.json | 4 | ||||
| -rw-r--r-- | src/Entity/ScoTracking.php | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/composer.json b/composer.json index dee8751..b49b7ca 100644 --- a/composer.json +++ b/composer.json @@ -10,10 +10,10 @@ } ], "require": { - "php": "^7.4 || ^8.0", + "php": "^8.1", "doctrine/common": "^3.1", "league/flysystem": "^2.0 || ^3.0", - "nesbot/carbon": "^2.42", + "nesbot/carbon": "^3.0", "ext-zip": "*", "ext-dom": "*" }, diff --git a/src/Entity/ScoTracking.php b/src/Entity/ScoTracking.php index 64e83b2..e78e02e 100644 --- a/src/Entity/ScoTracking.php +++ b/src/Entity/ScoTracking.php @@ -257,7 +257,7 @@ class ScoTracking return $this->latestDate; } - public function setLatestDate(Carbon $latestDate = null) + public function setLatestDate(?Carbon $latestDate = null) { $this->latestDate = $latestDate; } |
