Using ::class on objects in PHP 8.0

Using ::class on objects in PHP 8.0

Since PHP 5.5, we can use the special ::class constant which allows getting a fully qualified name (FQN) of the class by using ClassName::class syntax. Let's say we have a...