8. 3.X
▸ Will continue to do forwards compatible feature releases
with community support.
▸ Unlikely that cake-core team will invest time in shipping
new features to 3.x in the future.
▸ Security fixes for 36 months after 4.0.0 is released.
18. TEXT
STATIC ANALYSIS
ERROR: MoreSpecificReturnType - src/Console/
CommandFactory.php:30:21 - The declared return
type 'CakeConsoleShell|CakeConsoleCommand'
for CakeConsoleCommandFactory!::create is
more specific than the inferred return type
‘CakeConsoleShell|
CakeConsoleCommandInterface’
public function create(string $className)
19. CONSISTENT
!// These all return `null` now.
Type!::get(‘boolean’)!->marshal(‘nope’);
Type!::get(‘boolean’)!->marshal(‘’);
Type!::get(‘string’)!->marshal([‘one’]);
!// No more lost nulls
Type!::get(‘json’)!->toDatabase(null);
20. TEXT
CONSISTENT
!// Use null to indicate no value.
Cache!::read(‘key’);
$viewBuilder!->getPlugin();
Log!::engine(‘system’);
22. TEXT
CLEARER ERROR MESSAGES
Controller actions can only return ResponseInterface
instance or null. Got boolean instead.
Loggers must implement CakeLogLoggerInterface. Found
`Closure` instance instead.
File must be a filepath or UploadedFileInterface instance.
Found `integer` instead.
30. TEXT
WHAT’S NEXT? - CAKEPHP 4.1
▸ PSR-11 Container support
▸ Continued focus on error messages & Developer
Experience.
▸ We need your ideas and help!