DEV Community

Discussion on: Building minicli: Implementing Command Controllers

Collapse
 
lawondyss profile image
Ladislav Vondráček

Two suggestions:
1) Code "isset($foo[$bar]) ? $foo[$bar] : null" can be short to "$foo[$bar] ?? null"
2) Try using Null object pattern for missing controller

Collapse
 
ihorvorotnov profile image
Ihor Vorotnov

Both are good points