Skip to content

[TASK] Deprecate getLineNo() etc. in v8.9.0 #1233

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 7, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Position/Positionable.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function getLineNumber(): ?int;
/**
* @return int<0, max>
*
* @deprecated in version 9.0.0, will be removed in v10.0. Use `getLineNumber()` instead.
* @deprecated in version 8.9.0, will be removed in v9.0. Use `getLineNumber()` instead.
*/
public function getLineNo(): int;

Expand All @@ -31,13 +31,13 @@ public function getColumnNumber(): ?int;
/**
* @return int<0, max>
*
* @deprecated in version 9.0.0, will be removed in v10.0. Use `getColumnNumber()` instead.
* @deprecated in version 8.9.0, will be removed in v9.0. Use `getColumnNumber()` instead.
*/
public function getColNo(): int;

/**
* @param int<0, max>|null $lineNumber
* Providing zero for this parameter is deprecated in version 9.0.0, and will not be supported from v10.0.
* Providing zero for this parameter is deprecated in version 8.9.0, and will not be supported from v9.0.
* Use `null` instead when no line number is available.
* @param int<0, max>|null $columnNumber
*/
Expand Down
Loading