I am encountering a warning when using the Tenancy package. The warning indicates that accessing a static trait property is deprecated. Below is the full log message:
LOG.warning: Accessing static trait property Stancl\Tenancy\Database\Concerns\BelongsToTenant::$tenantIdColumn is deprecated, it should only be accessed on a class using the trait in C:\laragon\www\dysrup-web\vendor\stancl\tenancy\src\Database\Concerns\BelongsToTenant.php on line 19
Actual Behavior
The following deprecation warning is logged:
LOG.warning: Accessing static trait property Stancl\Tenancy\Database\Concerns\BelongsToTenant::$tenantIdColumn is deprecated, it should only be accessed on a class using the trait in C:\laragon\www\dysrup-web\vendor\stancl\tenancy\src\Database\Concerns\BelongsToTenant.php on line 19
Steps to reproduce
Install the Tenancy package in a Laravel project.
Trigger any functionality that uses the BelongsToTenant trait.
Bug description
I am encountering a warning when using the Tenancy package. The warning indicates that accessing a static trait property is deprecated. Below is the full log message:
Actual Behavior
The following deprecation warning is logged:
Steps to reproduce
Expected behavior
No deprecation warnings should be logged.
Laravel version
9.52.16
stancl/tenancy version
3.8.3
Environment PHP version: 8.1 Operating System: Ubuntu 20.04