Skip to content

Commit

Permalink
improve deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
nyamsprod committed Nov 5, 2018
1 parent b5063ff commit 081760c
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 322 deletions.
5 changes: 3 additions & 2 deletions .php_cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ $finder = PhpCsFixer\Finder::create()
;

return PhpCsFixer\Config::create()
->setUsingCache(false)
->setRules([
'@PSR2' => true,
'array_syntax' => ['syntax' => 'short'],
Expand All @@ -37,14 +36,16 @@ return PhpCsFixer\Config::create()
'no_empty_comment' => true,
'no_leading_import_slash' => true,
'no_trailing_comma_in_singleline_array' => true,
'no_superfluous_phpdoc_tags' => true,
'no_unused_imports' => true,
'ordered_imports' => ['importsOrder' => null, 'sortAlgorithm' => 'alpha'],
'ordered_imports' => ['imports_order' => ['class', 'function', 'const'], 'sort_algorithm' => 'alpha'],
'phpdoc_add_missing_param_annotation' => ['only_untyped' => false],
'phpdoc_align' => true,
'phpdoc_no_empty_return' => true,
'phpdoc_order' => true,
'phpdoc_scalar' => true,
'phpdoc_to_comment' => true,
'phpdoc_summary' => true,
'psr0' => true,
'psr4' => true,
'return_type_declaration' => ['space_before' => 'none'],
Expand Down
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,24 @@

All Notable changes to `League\Uri\Interfaces` will be documented in this file

## 1.1.1 - 2018-11-05

### Added

- None

### Fixed

- Make `League\Uri\Interfaces\Uri` implements `League\Uri\UriInterface`

### Deprecated

- None

### Removed

- None

## 1.1.0 - 2018-05-22

### Added
Expand Down
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ $ composer require league/uri-interfaces
Documentation
--------

### League\Uri\Interfaces\Uri
**WARNING: since version 1.1.1 The `League\Uri\Interfaces\Uri` extends the `League\Uri\UriInterface` interface.
You shoud implements the `League\Uri\UriInterface`**.

### League\Uri\UriInterface

The `Uri` interface models generic URIs as specified in [RFC 3986](http://tools.ietf.org/html/rfc3986). The interface provides methods for interacting with the various URI parts, which will obviate the need for repeated parsing of the URI. It also specifies a `__toString()` method for casting the modeled URI to its string representation.

Expand Down Expand Up @@ -64,7 +67,7 @@ public Uri::withFragment(string $fragment): self

#### Relation with [PSR-7](http://www.php-fig.org/psr/psr-7/#3-5-psr-http-message-uriinterface)

This interface exposes the same methods as `Psr\Http\Message\UriInterface`. But, unlike the `UriInterface`, this interface does not require the `http` and `https` schemes to be supported. The supported schemes are determined by the each concrete implementation.
This interface exposes the same methods as `Psr\Http\Message\UriInterface`. But, unlike the `UriInterface`, this interface does not require the `http` and `https` schemes to be supported. The supported schemes are determined by each concrete implementation.

Contributing
-------
Expand Down
Loading

0 comments on commit 081760c

Please sign in to comment.