You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Deny pass null to CreateService::getTemplate() #313
The reason was to have a nicer exception "You must define a template to generate the migration." instead of generic type mismatch.
publicfunctiongetTemplate(?string$key): string
{
$key = (string) $key;
if ($this->templates === null) {
$this->setDefaultTemplates();
}
if (!isset($this->templates[$key])) {
thrownewInvalidConfigException('You must define a template to generate the migration.');
}
return$this->templates[$key];
}
Activity
samdark commentedon Dec 20, 2025
The reason was to have a nicer exception "You must define a template to generate the migration." instead of generic type mismatch.
vjik commentedon Dec 20, 2025
nullis never passed to this method.