Skip to content

refactor: remove redundant @var tags from constants#533

Merged
azjezz merged 1 commit intonextfrom
const-var
Sep 19, 2025
Merged

refactor: remove redundant @var tags from constants#533
azjezz merged 1 commit intonextfrom
const-var

Conversation

@azjezz
Copy link
Copy Markdown
Member

@azjezz azjezz commented Sep 19, 2025

This commit removes a large number of @var docblocks from constants throughout the Psl\DateTime and Psl\Math namespaces.

These annotations were often redundant, too wide (e.g., @var int for a specific literal value), or in some cases, incorrect. modern static analyzers can infer the precise literal types of these constants directly from their values.

This commit removes a large number of `@var` docblocks from constants throughout the `Psl\DateTime` and `Psl\Math` namespaces.

These annotations were often redundant, too wide (e.g., `@var int` for a specific literal value), or in some cases, incorrect. modern static analyzers can infer the precise literal types of these constants directly from their values.

Signed-off-by: azjezz <azjezz@protonmail.com>
@azjezz azjezz merged commit 5da2df4 into next Sep 19, 2025
24 checks passed
@azjezz azjezz deleted the const-var branch September 19, 2025 22:29
@coveralls
Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 17871211749

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 98.497%

Totals Coverage Status
Change from base Build 17742285504: 0.0%
Covered Lines: 5506
Relevant Lines: 5590

💛 - Coveralls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants