Skip to content

Commit

Permalink
misc: declare code type in docblocks
Browse files Browse the repository at this point in the history
  • Loading branch information
romm committed Apr 6, 2022
1 parent b7923bc commit 03c84a1
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Attribute/Identifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* 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
Expand Down
2 changes: 1 addition & 1 deletion src/Mapper/Tree/Message/Formatter/MessageMapFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
*
* 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',
Expand Down
2 changes: 1 addition & 1 deletion src/Mapper/Tree/Message/MessagesFlattener.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* 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) {
Expand Down
2 changes: 1 addition & 1 deletion src/Mapper/Tree/Message/NodeMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function __construct(Node $node, Message $message)
*
* See usage examples below:
*
* ```
* ```php
* $content = $message->format('the previous code was: %1$s');
*
* $content = $message->format(
Expand Down
2 changes: 1 addition & 1 deletion src/MapperBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function __construct()
*
* Example:
*
* ```
* ```php
* (new \CuyZ\Valinor\MapperBuilder())
* ->infer(UuidInterface::class, fn () => MyUuid::class)
* ->infer(SomeInterface::class, fn (string $type) => match($type) {
Expand Down

0 comments on commit 03c84a1

Please sign in to comment.