Convert string references to ::class

PHP 5.5.9 adds the new static `class` property which provides the fully qualified class name. This is preferred over using strings for class names since the `class` property references are checked by PHP.
This commit is contained in:
Shift
2023-05-24 21:32:58 +00:00
parent b845552c37
commit d0493f3dd0
10 changed files with 10 additions and 10 deletions

View File

@@ -11,7 +11,7 @@ class SubscriptionFilter extends FilterAbstract
*
* @var mixed
*/
protected $class = '\App\Models\Subscription';
protected $class = \App\Models\Subscription::class;
/**