Standardize Laravel API responses, PHP Match expression and new releases [W41]
We need your help, tell us what's your favorite section in the Weekly PHP newsletter.
Laravel
🆕 Laravel 10.26
Running a day behind, but there were a few patch releases yesterday bringing us to Laravel 10.26.2. Here are the highlights:
Account for new MariaDB platform in #48563
Convert
Expressiontostringfor having subqueries in #48525Allow searching
vendor:publishprompt in #48586Add new SQL error messages in #48601
Prevent
session:tablecommand from creating duplicates in #48602Handle expiration in seconds in #48600
Add closure type hint for Query Builder methods in #48562
You may review the full branch diff on GitHub for a complete list of changes.
📚 Standardize Laravel API success and error response
Standardizing success and error response is crucial for an API. Since, API are often consumed by other systems.
Symfony
🆕 5.4 changelog:
7aaa92a: [Form] make FormPerformanceTestCase compatible with PHPUnit 10
adcd3d0: [Security] fix resetting traceable listeners
8dc9fee: [Validator] add missing italian translations
🆕 6.3 changelog:
d14d1a9: [FrameworkBundle] fix call to invalid method in NotificationAssertionsTrait
7aaa92a: [Form] make FormPerformanceTestCase compatible with PHPUnit 10
82f21e8: [HttpClient] fix type error with http_version 1.1
bfd2f7d: [Serializer] fix order array sum normalizedData and nestedData
🆕 6.4 changelog:
19f0093: [TwigBridge] add FormLayoutTestCase class
e11ae31: [Security] make impersonation_path() argument mandatory and add impersonation_url()
a257327: [Messenger] fix WrappedExceptionsTrait
b3c91c2: [FrameworkBundle] remove validator.expression_language_provider when expression language isn't installed
f7bfffa: move UriSigner from HttpKernel to HttpFoundation package
693276e: [FrameworkBundle] add HttpClientAssertionsTrait which provide shortcuts to assert HTTP calls was triggered
96687e3: [Notifier] transport possible to have null
1dcdb66: [HttpFoundation] fix type of properties in Request class
34a93ef: [Messenger] resend failed retries back to failure transport
d14d1a9: [FrameworkBundle] fix call to invalid method in NotificationAssertionsTrait
c85f224: [Mailer] use idn encoded address otherwise Brevo throws an error
0c8cb7e: [DoctrineBridge] pass Request to EntityValueResolver expression
f149841: [AssetMapper] add audit command
8b420d4: [Form] add duplicate_preferred_choices option to ChoiceType
d27190a: [AssetMapper] fix unit test in assetmapper auditor
95fa158: [DependencyInjection] add #[AutowireIterator] attribute and improve #[AutowireLocator]
204381b: [AssetMapper] always downloading vendor files
8ac7385: [Messenger] mention the transport which failed during the setup command
d8397de: [AssetMapper] fix entrypoint scripts are not preloaded
🆕 7.0 changelog:
039eecb: update the design of the Symfony Welcome Page
Articles & Misc
📚 PHP Match Expression - Match vs Switch
The Match expression is essentially the same as the Switch statement and was introduced in PHP 8.
📚 Fix Missing MySQL Extension Error in WordPress
The “Missing MySQL Extension” error typically occurs when your server lacks the necessary PHP extension to connect to the MySQL database.




