phpstorm-attributes icon indicating copy to clipboard operation
phpstorm-attributes copied to clipboard

#[Deprecated] does not preclude the use of the method

Open LocalHeroPro opened this issue 10 months ago • 0 comments

Right now:

#[Deprecated(message: 'Move to repository')]
public function index(): void {}

We get: $data = $this->index(); Expectation: $data = $this->~~index~~();

Right now, if we want to preclude, we need to use comment

/**
 * @deprecated
 */
public function index(): void {}

Only then, preclude works as expected.

LocalHeroPro avatar Mar 28 '25 18:03 LocalHeroPro