mirror of
https://github.com/danog/psalm-plugin-laravel.git
synced 2024-12-02 09:37:47 +01:00
Fix null arg
This commit is contained in:
parent
3b6b635128
commit
f9d530f17a
@ -104,8 +104,8 @@ class FakeModelsCommand extends \Barryvdh\LaravelIdeHelper\Console\ModelsCommand
|
|||||||
if ($get_type === $set_type) {
|
if ($get_type === $set_type) {
|
||||||
$this->setProperty($name, $get_type, true, true, '', $column->nullable);
|
$this->setProperty($name, $get_type, true, true, '', $column->nullable);
|
||||||
} else {
|
} else {
|
||||||
$this->setProperty($name, $get_type, true, false, '', $column->nullable);
|
$this->setProperty($name, $get_type, true, null, '', $column->nullable);
|
||||||
$this->setProperty($name, $set_type, false, true, '', $column->nullable);
|
$this->setProperty($name, $set_type, null, true, '', $column->nullable);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->write_model_magic_where) {
|
if ($this->write_model_magic_where) {
|
||||||
|
Loading…
Reference in New Issue
Block a user