It seems like $this->flysystem->read($file['path']) targeting League\Flysystem\Filesystem::read() can also be of type false; however, League\Flysystem\Filesystem::put() does only seem to accept string, did you maybe forget to handle an error condition?
Loading history...
45
);
46
}
47
}
48
49
public function createType(Type $type)
50
{
51
$this->flysystem->put(
52
"src/{$type->name}.php",
53
$this->typeTemplate->render(['type' => $type])
54
);
55
}
56
57
public function createBuilderClass(TypeCollection $types)
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: