Laravel 9へのアップグレード
Closed this issue · 2 comments
ebinase commented
Laravel 9 が公開されているのでアップグレードする。
参考
公式アップグレードガイド
https://laravel.com/docs/master/upgrade
Zenの記事
https://zenn.dev/laravelstudy/articles/aad2d47ec6b1dc
注意
PHP 8.0.2 Required
Laravel now requires PHP 8.0.2 or greater
要件を満たさない場合はこちらのコマンドで
docker run --rm \
-u "$(id -u):$(id -g)" \
-v $(pwd):/var/www/html \
-w /var/www/html \
laravelsail/php81-composer:latest \
composer update --ignore-platform-reqs --with-all-dependencies
ebinase commented
Laravel 9のコードにいろいろ書き換えてみる
ebinase commented
カバレッジの出力に成功!
Factories/Game/GameFactory ........................................ 100.0 %
Models/Board/Board 84..88, 151 ...................................... 94.6 %
Models/Board/Color/Color 48 ......................................... 92.3 %
Models/Board/Position/Position 30 ................................... 83.3 %
Models/Board/Position/PositionConverterTrait ...................... 100.0 %
Models/Bot/BotFactory ............................................. 100.0 %
Models/Bot/BotInterface ........................................... 100.0 %
Models/Bot/Bots/RandomBot ......................................... 100.0 %
Models/Bot/Calculators/CalculatorInterface ........................ 100.0 %
Models/Bot/Calculators/Random/RandomCalculator .................... 100.0 %
Models/Common/Matrix/Matrix 66, 257 ................................. 98.1 %
Models/Common/Matrix/MatrixInterface .............................. 100.0 %
Models/Game/Game 32, 37, 40, 72..76, 82, 100..118, 126..134 ......... 59.6 %
Models/Game/GameMode 38, 79..84 ..................................... 72.7 %
Models/Game/GameStatus 38, 74 ....................................... 77.8 %
Models/Game/Participants 66..71, 90 ................................. [78](https://github.com/ebinase/othello/runs/5573807667?check_suite_focus=true#step:9:78).6 %
Models/Game/Result ................................................... 0.0 %
Models/Participant/BaseParticipant 20..30, 45 ....................... 55.6 %
Models/Participant/BotParticipant ................................. 100.0 %
Models/Participant/ParticipantInterface ........................... 100.0 %
Models/Participant/Player ......................................... 100.0 %
Models/Skip/SkipCounter .............................................. 0.0 %
Models/Turn/Turn 22 ................................................. 96.6 %
Repositories/Game/GameRepositoryInterface ......................... 100.0 %
Services/Game/GameProcessService .................................. 100.0 %
UseCases/Game/GameInitializeUsecase .................................. 0.0 %
UseCases/Game/GameProcessUsecase ..................................... 0.0 %
UseCases/Game/GameShowBoardUsecase ................................... 0.0 %
Total Coverage ...................................................... [79](https://github.com/ebinase/othello/runs/5573807667?check_suite_focus=true#step:9:79).2 %