Version
v5.10.62
Environment <Docker/Shared Hosting/Zip/Other>
Docker on Truenas Scale (w/ a custom docker-compose)
Describe the bug
App container fails to start, logs show:
In TaxModel.php line 50:
Cannot assign null to property App\DataMapper\Tax\TaxModel::$seller_subregion of type string
Steps To Reproduce
Update app image to v5.11
Expected Behavior
Container to launch as usual
Logs
laravel.log
[2024-12-19 21:42:58] production.ERROR: Cannot assign null to property App\DataMapper\Tax\TaxModel::$seller_subregion of type string {"exception":"[object] (TypeError(code: 0): Cannot assign nu
[stacktrace]
#0 /var/www/app/database/migrations/2024_12_18_023826_2024_12_18_enforce_tax_data_model.php(20): App\\DataMapper\\Tax\\TaxModel->__construct(Object(stdClass))
#1 /var/www/app/vendor/laravel/framework/src/Illuminate/Collections/Traits/EnumeratesValues.php(257): Illuminate\\Database\\Migrations\\Migration@anonymous->{closure}(Object(App\\Models\\Compan
#2 /var/www/app/database/migrations/2024_12_18_023826_2024_12_18_enforce_tax_data_model.php(19): Illuminate\\Support\\LazyCollection->each(Object(Closure))
#3 /var/www/app/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(476): Illuminate\\Database\\Migrations\\Migration@anonymous->up()
#4 /var/www/app/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(401): Illuminate\\Database\\Migrations\\Migrator->runMethod(Object(Illuminate\\Database\\MySqlConnection
#5 /var/www/app/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(410): Illuminate\\Database\\Migrations\\Migrator->Illuminate\\Database\\Migrations\\{closure}()
#6 /var/www/app/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(213): Illuminate\\Database\\Migrations\\Migrator->runMigration(Object(Illuminate\\Database\\Migrations\\
#7 /var/www/app/vendor/laravel/framework/src/Illuminate/Console/View/Components/Task.php(40): Illuminate\\Database\\Migrations\\Migrator->Illuminate\\Database\\Migrations\\{closure}()
#8 /var/www/app/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(737): Illuminate\\Console\\View\\Components\\Task->render('2024_12_18_0238...', Object(Closure))
#9 /var/www/app/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(213): Illuminate\\Database\\Migrations\\Migrator->write('Illuminate\\\\Cons...', '2024_12_18_0238...', O
#10 /var/www/app/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(180): Illuminate\\Database\\Migrations\\Migrator->runUp('/var/www/app/da...', 44, false)
#11 /var/www/app/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(123): Illuminate\\Database\\Migrations\\Migrator->runPending(Array, Array)
#12 /var/www/app/vendor/laravel/framework/src/Illuminate/Database/Console/Migrations/MigrateCommand.php(116): Illuminate\\Database\\Migrations\\Migrator->run(Array, Array)
#13 /var/www/app/vendor/laravel/framework/src/Illuminate/Database/Migrations/Migrator.php(616): Illuminate\\Database\\Console\\Migrations\\MigrateCommand->Illuminate\\Database\\Console\\Migrati
#14 /var/www/app/vendor/laravel/framework/src/Illuminate/Database/Console/Migrations/MigrateCommand.php(109): Illuminate\\Database\\Migrations\\Migrator->usingConnection(NULL, Object(Closure))
#15 /var/www/app/vendor/laravel/framework/src/Illuminate/Database/Console/Migrations/MigrateCommand.php(88): Illuminate\\Database\\Console\\Migrations\\MigrateCommand->runMigrations()
#16 /var/www/app/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Illuminate\\Database\\Console\\Migrations\\MigrateCommand->handle()
#17 /var/www/app/vendor/laravel/framework/src/Illuminate/Container/Util.php(43): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
#18 /var/www/app/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(95): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))
#19 /var/www/app/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(35): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, O
#20 /var/www/app/vendor/laravel/framework/src/Illuminate/Container/Container.php(694): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)
#21 /var/www/app/vendor/laravel/framework/src/Illuminate/Console/Command.php(213): Illuminate\\Container\\Container->call(Array)
#22 /var/www/app/vendor/symfony/console/Command/Command.php(279): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\Output
#23 /var/www/app/vendor/laravel/framework/src/Illuminate/Console/Command.php(182): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Obje
#24 /var/www/app/vendor/symfony/console/Application.php(1094): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Outpu
#25 /var/www/app/vendor/symfony/console/Application.php(342): Symfony\\Component\\Console\\Application->doRunCommand(Object(Illuminate\\Database\\Console\\Migrations\\MigrateCommand), Object(Sy
#26 /var/www/app/vendor/symfony/console/Application.php(193): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\C
#27 /var/www/app/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(197): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput),
#28 /var/www/app/artisan(35): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#29 {main}
"}