From 39eb0baec260193f3aac7177c83813a5ae4df83a Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Mon, 21 Oct 2024 11:06:19 +0800 Subject: [PATCH] [9.x] Experimental supports for PHP 8.4 (#231) * wip Signed-off-by: Mior Muhammad Zaki * wip * Update composer.json * wip Signed-off-by: Mior Muhammad Zaki * wip Signed-off-by: Mior Muhammad Zaki * wip Signed-off-by: Mior Muhammad Zaki * Update HandlesAnnotations.php * Update InteractsWithPHPUnit.php * wip Signed-off-by: Mior Muhammad Zaki * wip Signed-off-by: Mior Muhammad Zaki * wip Signed-off-by: Mior Muhammad Zaki * wip Signed-off-by: Mior Muhammad Zaki * wip Signed-off-by: Mior Muhammad Zaki * wip Signed-off-by: Mior Muhammad Zaki * wip Signed-off-by: Mior Muhammad Zaki * wip Signed-off-by: Mior Muhammad Zaki * wip Signed-off-by: Mior Muhammad Zaki * wip Signed-off-by: Mior Muhammad Zaki * wip * Update tests.yaml * Update strict-tests.yaml --------- Signed-off-by: Mior Muhammad Zaki --- composer.json | 5 +++-- src/Concerns/InteractsWithMigrations.php | 3 +++ src/functions.php | 1 + 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 149bcc35..11941589 100644 --- a/composer.json +++ b/composer.json @@ -37,7 +37,8 @@ "require": { "php": "^8.2", "composer-runtime-api": "^2.2", - "symfony/polyfill-php83": "^1.31" + "symfony/polyfill-php83": "^1.31", + "symfony/polyfill-php84": "^1.31" }, "require-dev": { "fakerphp/faker": "^1.23", @@ -49,7 +50,7 @@ "spatie/laravel-ray": "^1.35", "symfony/process": "^7.0.3", "symfony/yaml": "^7.0.3", - "vlucas/phpdotenv": "^5.4.1" + "vlucas/phpdotenv": "^5.6.1" }, "conflict": { "brianium/paratest": "<7.3.0 || >=8.0.0", diff --git a/src/Concerns/InteractsWithMigrations.php b/src/Concerns/InteractsWithMigrations.php index d052e1c5..881f3052 100644 --- a/src/Concerns/InteractsWithMigrations.php +++ b/src/Concerns/InteractsWithMigrations.php @@ -106,6 +106,7 @@ protected function loadMigrationsFrom(array|string $paths): void * * @deprecated */ + #[\Deprecated(message: 'Use `loadMigrationsFrom()` instead', since: '9.0.7')] protected function loadMigrationsWithoutRollbackFrom(array|string $paths): void { if (\is_null($this->app)) { @@ -179,6 +180,7 @@ protected function loadLaravelMigrations(array|string $database = []): void * * @deprecated */ + #[\Deprecated(message: 'Use `loadLaravelMigrations()` instead', since: '9.0.7')] protected function loadLaravelMigrationsWithoutRollback(array|string $database = []): void { $this->loadLaravelMigrations($database); @@ -216,6 +218,7 @@ protected function runLaravelMigrations(array|string $database = []): void * * @deprecated */ + #[\Deprecated(message: 'Use `runLaravelMigrations()` method instead', since: '9.0.7')] protected function runLaravelMigrationsWithoutRollback(array|string $database = []): void { $this->runLaravelMigrations($database); diff --git a/src/functions.php b/src/functions.php index a2e20341..96e40f86 100644 --- a/src/functions.php +++ b/src/functions.php @@ -334,6 +334,7 @@ function workbench_path(array|string $path = ''): string * * @deprecated */ +#[\Deprecated(message: 'Use `Orchestra\Testbench\default_migration_path()` instead', since: '9.5.1')] function laravel_migration_path(?string $type = null): string { return default_migration_path($type);