Skip to content

Commit

Permalink
BaseUri is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
nyamsprod committed Jan 1, 2025
1 parent 18466a7 commit aca9670
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/uri/7.0/base-uri.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ title: URI context aware wrapper
URI info and full manipulation
=======

<p class="message-warning">The class is deprecated please use the <code>Uri</code> class instead startinh with version <code>7.6.0</code>.</p>

The `League\Uri\BaseUri` class is build to ease gathering information regarding a specific URI.
The class makes it easier to transform and crawl pages containing URIs (ie: a web page, or an HTTP client for instance).

Expand Down
1 change: 1 addition & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ parameters:
- message: '#Variable method call on Psr\\Http\\Message\\UriInterface.#'
path: components/Modifier.php
- '#Attribute class Deprecated does not exist.#'
- '#deprecated class League\\Uri\\BaseUri#'
reportUnmatchedIgnoredErrors: true
treatPhpDocTypesAsCertain: false
4 changes: 4 additions & 0 deletions uri/BaseUri.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@

/**
* @phpstan-import-type ComponentMap from UriInterface
* @deprecated since version 7.6.0
*
* @see Modifier
* @see Uri
*/
class BaseUri implements Stringable, JsonSerializable, UriAccess
{
Expand Down
2 changes: 1 addition & 1 deletion uri/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ All Notable changes to `League\Uri` will be documented in this file

### Deprecated

- None
- `BasUri` use the `Uri` class or the component `Modifier` class depending on the needed requirement.

### Removed

Expand Down

0 comments on commit aca9670

Please sign in to comment.