misc: declare code type in docblocks

This commit is contained in:
Romain Canon 2022-04-04 22:58:55 +02:00
parent b7923bc383
commit 03c84a1f09
5 changed files with 5 additions and 5 deletions

View File

@ -12,7 +12,7 @@ use CuyZ\Valinor\Mapper\Tree\Visitor\ShellVisitor;
* This attribute can be added to an object property. It will be filled with
* the iteration key from the source which is used to map the object tree.
*
* ```
* ```php
* use CuyZ\Valinor\Attribute\Identifier;
*
* final class Foo

View File

@ -31,7 +31,7 @@ use function is_callable;
*
* See usage examples below:
*
* ```
* ```php
* $formatter = (new MessageMapFormatter([
* // Will match if the given message has this exact code
* 'some_code' => 'new content / previous code was: %1$s',

View File

@ -18,7 +18,7 @@ use function array_filter;
* flatten all caught errors into a basic array of string that can then easily
* be used to inform the user of what is wrong.
*
* ```
* ```php
* try {
* // …
* } catch(MappingError $error) {

View File

@ -38,7 +38,7 @@ final class NodeMessage implements Message, HasCode
*
* See usage examples below:
*
* ```
* ```php
* $content = $message->format('the previous code was: %1$s');
*
* $content = $message->format(

View File

@ -32,7 +32,7 @@ final class MapperBuilder
*
* Example:
*
* ```
* ```php
* (new \CuyZ\Valinor\MapperBuilder())
* ->infer(UuidInterface::class, fn () => MyUuid::class)
* ->infer(SomeInterface::class, fn (string $type) => match($type) {