Skip to content

[Bug] @Deprecated annotations are not used by IDEs to show warnings #3162

Closed
@nicolanrizzo

Description

@nicolanrizzo

This is:

- [X ] a bug report
- [ ] a feature request
- [X ] **not** a usage question (ask them on https://stackoverflow.com/questions/tagged/phpspreadsheet or https://gitter.im/PHPOffice/PhpSpreadsheet)

What is the expected behavior?

IDEs show warnings for deprecated methods (like setCellValueByColumnAndRow).

What is the current behavior?

IDEs do not show warnings for deprecated methods.

What are the steps to reproduce?

<?php

require __DIR__ . '/vendor/autoload.php';

$spreadsheet = new \PhpOffice\PhpSpreadsheet\Spreadsheet();
$sheet = $spreadsheet->getActiveSheet();
// the method in the next line should be marked deprecated by IDEs, but it's not
$sheet->setCellValueByColumnAndRow(1, 1, 'test');

What features do you think are causing the issue

The annotation @Deprecated does not exist. The annotation @deprecated should be used instead (see: https://docs.phpdoc.org/guide/references/phpdoc/tags/deprecated.html).

Which versions of PhpSpreadsheet and PHP are affected?

The current master branch presents this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions