Closed makss closed 3 months ago
Simplifying PHPDoc.
Now we need to add a PHPDoc block to each CrudController class:
/** * Class DummyClassCrudController * @package App\Http\Controllers\Admin * @property-read \Backpack\CRUD\app\Library\CrudPanel\CrudPanel $crud */ class DummyClassCrudController extends CrudController { public function setup() { $this->crud->[ _autocomplete_works_ ]; } }
After the patch, it will no longer be necessary to add a PHPDoc block to each CrudController class:
class DummyClassCrudController extends CrudController { public function setup() { $this->crud->[ _autocomplete_works_ ]; } }
No
Check autocomplete in PhpStorm or another IDE.
Thanks @makss 🙏
WHY
Simplifying PHPDoc.
BEFORE - What was wrong? What was happening before this PR?
Now we need to add a PHPDoc block to each CrudController class:
AFTER - What is happening after this PR?
After the patch, it will no longer be necessary to add a PHPDoc block to each CrudController class:
Is it a breaking change?
No
How can we test the before & after?
Check autocomplete in PhpStorm or another IDE.