Add type hints for Laravel 10

This commit is contained in:
Shift
2023-05-24 21:33:15 +00:00
parent 4124cf39db
commit 979b9f704c
67 changed files with 118 additions and 114 deletions

View File

@@ -11,7 +11,7 @@ return new class extends Migration
*
* @return void
*/
public function up()
public function up(): void
{
Schema::table('users', function (Blueprint $table) {
$table->string('first_name')->default('')->change();
@@ -24,7 +24,7 @@ return new class extends Migration
*
* @return void
*/
public function down()
public function down(): void
{
Schema::table('users', function (Blueprint $table) {
$table->string('first_name')->nullable(false)->change();