Bun in your Laravel project, and Symfony 7.0 is full of types [W38]
This future Symfony 7.0 it's going to affect other projects like Laravel. Finally, it looks like we're going to have a 100% typed framework!
📊 Need a better Google Analytics Alternative?
A privacy-friendly, no cookies and GDPR compliant alternative that is also configurable. Create funnels, measure your traffic and every event on your site with no hassle.
[Ad] https://metricswave.com - Appear here
Laravel
🆕 Laravel 10.23
A patch release yesterday and a few new features today brings us to Laravel 10.23. Here are the highlights:
Deduplicate exceptions in #48288
New Artisan
make:view
command in #48330Make
ComponentAttributeBag
JSON serializable in #48338Add
newResponse
toPendingRequest
in #48344Passthru
--test
option frommake:model
in #48335Add before/after database truncation methods to
DatabaseTruncation
in #48345Render mailable inline images in #48292
You may review the full branch diff on GitHub for a complete list of changes.
📚 Use Bun in Laravel Sail and Forge
Both Laravel Sail and Laravel Forge now includes support for Bun, a fast all-in-one JavaScript runtime. Once you update Sail, you can start Bun as follows:
📚 How to Speed Up Queries in a Laravel Project
This article outlines several strategies to optimize your queries and make your Laravel application perform at its best.
Symfony
🆕 5.4 changelog:
0da9599: [ErrorHandler] handle PHP 8.3 highlight_file function output changes
b0cc72d: [String] update wcswidth data with Unicode 15.1
e065f2e: [FrameworkBundle] no serializer mapping cache in debug mode without enable_annotations
7c4f174: [Cache] fix using multiple Redis Sentinel hosts when the first one is not resolvable
🆕 6.4 changelog:
8d2b79e: [FrameworkBundle] remove obsolete feature detection
4857210: [WebProfilerBundle] replace last "old" icon + delete ICONS_LICENCE.txt
06b7166: [Security] fix deprecation message
30a35e4: [Validator] add is_valid function to Expression constraint
253370a: [WebProfilerBundle] fix Form profiler toggles
972c442: [Serializer] allow Context to target classes
7c833ee: [HttpClient] enable using EventSourceHttpClient::connect() for both GET and POST
fc2777f: [FrameworkBundle, Test] add token attributes in KernelBrowser::loginUser()
a90eca6: [Scheduler] fix stateful scheduler
🆕 7.0 changelog:
cc2a148: [TwigBridge] remove duck typing from AppVariable::getFlashes()
0839d5a: [TwigBridge, TwigBundle] drop support for Twig 2
📚 Symfony 7.0 Type Declarations
Symfony has been gradually adding PHP type declarations to its code over multiple versions. Symfony 7.0 aims to complete this initiative by adding return types to all methods, void return types where applicable, and types to all class properties.
Articles & Misc
❓What about removing $ symbol from PHP variables?
This might be a bit controversial, but what about removing this character from PHP, would you like it?
📦 Replay
Replay your failed functions and methods easily with this PHP package.
📦 PaginationBundle for Symfony
Extend Symfony pagination with this bundle.