Laravel 12.6.0 Shift (#1205)

* Bump Laravel version constraint

* composer update

* Force PHP `8.2` platform

* Fix `SplFileInfo` cast in `CleanServiceBackupFilesCommand`

* Bump larastan to dev commit

* Unpin filament

---------

Co-authored-by: Shift <shift@laravelshift.com>
Co-authored-by: RMartinOscar <40749467+RMartinOscar@users.noreply.github.com>
This commit is contained in:
Lance Pioch 2025-04-02 21:43:01 -04:00 committed by GitHub
parent 3639f0cb50
commit 0cce716e2c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 320 additions and 308 deletions

View File

@ -6,6 +6,7 @@ use Carbon\Carbon;
use Illuminate\Console\Command;
use Illuminate\Contracts\Filesystem\Filesystem;
use Illuminate\Contracts\Filesystem\Factory as FilesystemFactory;
use SplFileInfo;
class CleanServiceBackupFilesCommand extends Command
{
@ -32,9 +33,10 @@ class CleanServiceBackupFilesCommand extends Command
*/
public function handle(): void
{
/** @var SplFileInfo[] */
$files = $this->disk->files('services/.bak');
collect($files)->each(function (\SplFileInfo $file) {
collect($files)->each(function ($file) {
$lastModified = Carbon::createFromTimestamp($this->disk->lastModified($file->getPath()));
if ($lastModified->diffInMinutes(Carbon::now()) > self::BACKUP_THRESHOLD_MINUTES) {
$this->disk->delete($file->getPath());

View File

@ -14,9 +14,9 @@
"chillerlan/php-qrcode": "^5.0.2",
"dedoc/scramble": "^0.12.10",
"doctrine/dbal": "~3.6.0",
"filament/filament": "3.3.3",
"filament/filament": "^3.3",
"guzzlehttp/guzzle": "^7.9",
"laravel/framework": "^12.2",
"laravel/framework": "^12.6",
"laravel/helpers": "^1.7",
"laravel/sanctum": "^4.0.2",
"laravel/socialite": "^5.18",
@ -49,14 +49,14 @@
"require-dev": {
"barryvdh/laravel-ide-helper": "^3.5",
"fakerphp/faker": "^1.23.1",
"larastan/larastan": "^3.1",
"larastan/larastan": "3.x-dev#5bd1c40edb43a727584081e74e9a1a2a201ea2ee",
"laravel/pail": "^1.2.2",
"laravel/pint": "^1.15.3",
"laravel/sail": "^1.41",
"mockery/mockery": "^1.6.11",
"nunomaduro/collision": "^8.6",
"pestphp/pest": "^3.7",
"spatie/laravel-ignition": "^2.9",
"laravel/pail": "^1.2.2"
"spatie/laravel-ignition": "^2.9"
},
"autoload": {
"files": [
@ -94,6 +94,9 @@
"sort-packages": true,
"allow-plugins": {
"pestphp/pest-plugin": true
},
"platform": {
"php": "8.2"
}
},
"minimum-stability": "stable",

611
composer.lock generated

File diff suppressed because it is too large Load Diff