Skip to content

Commit c3ca088

Browse files
committed
Documentation
1 parent 8281db5 commit c3ca088

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

docs/source/components.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ When it's possible, a component has it's counterpart ``-contract`` with only int
1010

1111
If you don't need to use our implementation of this interfaces
1212
(you just need a typehint, you want to create your own implementation etc),
13-
add the ``-contract`` dependency and work with interfaces.
13+
use the ``-contract`` dependency and work with interfaces.
1414

1515
Example:
16+
1617
.. code-block:: php
1718
:emphasize-lines: 3
1819
// You need a StringCollection to work with it,

docs/source/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Welcome to PHP++ documentation!
55
* Install only what you need: PHP++ is a set of reusable components
66
* Work with objects, do not use functions (example: ``fileatime()`` -> ``FileUtils::getAccessedAt()``)
77
* Do not care about ``E_NOTICE`` and it's friends, all PHP errors are catched and replaced by an exception
8+
* No more problems with parameters position or multiple return types: everything is typed and errors are converted as exception
89
* Replace ``array`` by ``Collection`` with only one type allowed (example: ``StringCollection``)
910

1011
Compatibles PHP versions: from ``7.4`` to the ``latest``.

0 commit comments

Comments
 (0)