Skip to content

Deprecations that I trigger myself are reported #100

Description

@apfelbox

Hi,

first up: really great library! Thanks for all your hard work, much appreciated.

So I have this code in my library:

if (!$this->strictIds)
{
	trigger_deprecation("...", "3.2.2", "Not setting strictIds when configuring the page tree is deprecated.");
}

But this gets reported when running PHPStan in this library:

 ------ --------------------------------------------------------------------------------------------------
  Line   src/PageTree/Builder/PageTreeConfig.php
 ------ --------------------------------------------------------------------------------------------------
  47     Since ... 3.2.2: Not setting strictIds when configuring the page tree is deprecated..
         🪪  todoBy.sfDeprecation
         ✏️  src/PageTree/Builder/PageTreeConfig.php
 ------ --------------------------------------------------------------------------------------------------

To be clear: that is not another code block that calls my code, but just the definition / triggering of a deprecation that gets reported.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions