Open thedotedge opened 1 year ago
You can just add the property publicly to your class
class Device
{
public $restler; // here
public function index() {
return [
'success' => [
'code' => 200,
'message' => 'Restler is up and running!',
],
];
}
}
Running on 8.2 yields deprecation:
Deprecated: Creation of dynamic property Luracast\Restler\Data\Validator::$restler is deprecated in /application/vendor/luracast/restler/src/Scope.php
https://php.watch/versions/8.2/dynamic-properties-deprecated#AllowDynamicProperties