flarum / framework

Simple forum software for building great communities.
http://flarum.org/
6.29k stars 832 forks source link

chore: use `::class` syntax to fetch class name instead of `get_class()` function #3910

Closed datlechin closed 11 months ago

datlechin commented 11 months ago

This pull request updates the codebase to use the ::class syntax for obtaining the fully qualified class name from objects. This improvement aligns with the introduction of this syntax in PHP 8.0.

See more: https://wiki.php.net/rfc/class_name_literal_on_object

Necessity

Confirmed

Required changes:

luceos commented 11 months ago

What a simple, but useful addition. @datlechin thank you 🙏