What potential pitfalls should PHP developers be aware of when upgrading to PHP 8.0?

One potential pitfall PHP developers should be aware of when upgrading to PHP 8.0 is that the nullsafe operator `?->` has a different behavior compared to PHP 7.4. In PHP 8.0, the nullsafe operator will return null if any of the properties or methods in the chain is null, whereas in PHP 7.4 it would throw a fatal error. To solve this issue, developers should ensure that their code handles potential null values appropriately.

// Before PHP 8.0
$result = $object->getProperty()->getMethod();

// In PHP 8.0
$result = $object?->getProperty()?->getMethod();
if ($result !== null) {
    // Handle the result
}