mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-08-22 17:02:58 +02:00
chore: update roadmap content json (#8154)
Co-authored-by: kamranahmedse <4921183+kamranahmedse@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
0783330a70
commit
b15bdd5f78
@@ -319,8 +319,13 @@
|
|||||||
"description": "The Null Safe Operator is a handy feature in PHP which deals with an issue that often pops up when working with objects: trying to access properties or methods on an object that might be null. Instead of a fatal error, the PHP Null Safe Operator (indicated by ?->) allows null values to be returned safely, making your code more robust. Here's a quick example, consider $session?->user?->name. If $session or user is null, PHP will stop further execution and simply return null. This makes PHP more resilient when processing unpredictable data.\n\nVisit the following resources to learn more:",
|
"description": "The Null Safe Operator is a handy feature in PHP which deals with an issue that often pops up when working with objects: trying to access properties or methods on an object that might be null. Instead of a fatal error, the PHP Null Safe Operator (indicated by ?->) allows null values to be returned safely, making your code more robust. Here's a quick example, consider $session?->user?->name. If $session or user is null, PHP will stop further execution and simply return null. This makes PHP more resilient when processing unpredictable data.\n\nVisit the following resources to learn more:",
|
||||||
"links": [
|
"links": [
|
||||||
{
|
{
|
||||||
"title": "Null Safe Operator",
|
"title": "The Basics - Manual",
|
||||||
"url": "https://www.php.net/manual/en/language.oop5.nullsafe.php",
|
"url": "https://www.php.net/manual/en/language.oop5.basic.php",
|
||||||
|
"type": "article"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "PHP RFC: Nullsafe operator",
|
||||||
|
"url": "https://wiki.php.net/rfc/nullsafe_operator",
|
||||||
"type": "article"
|
"type": "article"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
Reference in New Issue
Block a user