- 1. 概要
- 2. アップグレード
- 3. バージョン
1. 概要
「PHP 8.0」を「PHP 8.2」へアップグレードしたときは、「Laravel」が「500」でこけておりました。
今回は、そのまま動作しているように見えます。
このままで、ええんかいな?
2. アップグレード
「Larave」のプロジェクトへ移動します。
composer.json
に下記の記述があります。
{
"name": "laravel/laravel",
"type": "project",
"description": "The skeleton application for the Laravel framework.",
"keywords": ["laravel", "framework"],
"license": "MIT",
"require": {
"php": "^8.1",
"guzzlehttp/guzzle": "^7.2",
"laravel/framework": "^10.10",
"laravel/sanctum": "^3.3",
"laravel/tinker": "^2.8",
"phpmailer/phpmailer": "^6.9"
},
これ、とりあえず、8行目を、下記へ変更します。
"php": "^8.2",
いったん、「root」ユーザ権限で。
プロジェクトのディレクトリへ移動して。
chown -R 管理ユーザ bootstrap/cache
「Laravel」の管理者ユーザ権限で。
composer update
Loading composer repositories with package information
Updating dependencies
Lock file operations: 0 installs, 72 updates, 1 removal
- Removing symfony/polyfill-php72 (v1.30.0)
- Upgrading brick/math (0.12.1 => 0.12.3)
- Upgrading doctrine/inflector (2.0.10 => 2.1.0)
・・・ 中略 ・・・
- Upgrading tijsverkoyen/css-to-inline-styles (v2.2.7 => v2.3.0)
- Upgrading vlucas/phpdotenv (v5.6.1 => v5.6.2)
- Upgrading voku/portable-ascii (2.0.1 => 2.0.3)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 0 installs, 72 updates, 1 removal
- Downloading doctrine/inflector (2.1.0)
- Downloading symfony/deprecation-contracts (v3.6.0)
- Downloading symfony/polyfill-php83 (v1.33.0)
・・・ 中略 ・・・
- Downloading spatie/flare-client-php (1.10.1)
- Downloading spatie/ignition (1.15.1)
- Downloading spatie/laravel-ignition (2.9.1)
- Removing symfony/polyfill-php72 (v1.30.0)
- Upgrading doctrine/inflector (2.0.10 => 2.1.0): Extracting archive
- Upgrading symfony/polyfill-ctype (v1.30.0 => v1.33.0): Extracting archive
- Upgrading dragonmantank/cron-expression (v3.3.3 => v3.4.0): Extracting archive
・・・ 中略 ・・・
- Upgrading spatie/flare-client-php (1.8.0 => 1.10.1): Extracting archive
- Upgrading spatie/ignition (1.15.0 => 1.15.1): Extracting archive
- Upgrading spatie/laravel-ignition (2.8.0 => 2.9.1): Extracting archive
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
PHP Deprecated: App\Lib\contents::getAbsolute(): Implicitly marking parameter $relate as nullable is deprecated, the explicit nullable type must be used instead in /path/app/Lib/contents.php on line 574
PHP Deprecated: App\Lib\Mobile_Detect::__construct(): Implicitly marking parameter $headers as nullable is deprecated, the explicit nullable type must be used instead in /path/app/Lib/Mobile_Detect.php on line 890
INFO Discovering packages.
laravel/sail ............................................................................................. DONE
laravel/sanctum .......................................................................................... DONE
laravel/tinker ........................................................................................... DONE
nesbot/carbon ............................................................................................ DONE
nunomaduro/collision ..................................................................................... DONE
nunomaduro/termwind ...................................................................................... DONE
spatie/laravel-ignition .................................................................................. DONE
81 packages you are using are looking for funding.
Use the 'composer fund' command to find out more!
> @php artisan vendor:publish --tag=laravel-assets --ansi --force
PHP Deprecated: App\Lib\contents::getAbsolute(): Implicitly marking parameter $relate as nullable is deprecated, the explicit nullable type must be used instead in /path/app/Lib/contents.php on line 574
PHP Deprecated: App\Lib\Mobile_Detect::__construct(): Implicitly marking parameter $headers as nullable is deprecated, the explicit nullable type must be used instead in /path/app/Lib/Mobile_Detect.php on line 890
INFO No publishable resources for tag [laravel-assets].
No security vulnerability advisories found.
うまくいったんかいな?
終了後、「root」ユーザ権限で。
chown -R www:www bootstrap/cache
3. バージョン
ドキュメントディレクトリで。
php ./artisan --version
の結果、作業前が。
Laravel Framework 10.48.20
作業後が。
PHP Deprecated: App\Lib\contents::getAbsolute(): Implicitly marking parameter $relate as nullable is deprecated, the explicit nullable type must be used instead in /path/app/Lib/contents.php on line 574
PHP Deprecated: App\Lib\Mobile_Detect::__construct(): Implicitly marking parameter $headers as nullable is deprecated, the explicit nullable type must be used instead in /path/app/Lib/Mobile_Detect.php on line 890
Laravel Framework 10.48.29
なんか、エラー出ちょります。
手当、どうしよう?
とりあえず、バージョン変わりましたと。
|