diff --git a/src/Attribute/Identifier.php b/src/Attribute/Identifier.php index b38657e..7ce95b1 100644 --- a/src/Attribute/Identifier.php +++ b/src/Attribute/Identifier.php @@ -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 diff --git a/src/Mapper/Tree/Message/Formatter/MessageMapFormatter.php b/src/Mapper/Tree/Message/Formatter/MessageMapFormatter.php index ffc8323..399800f 100644 --- a/src/Mapper/Tree/Message/Formatter/MessageMapFormatter.php +++ b/src/Mapper/Tree/Message/Formatter/MessageMapFormatter.php @@ -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', diff --git a/src/Mapper/Tree/Message/MessagesFlattener.php b/src/Mapper/Tree/Message/MessagesFlattener.php index ef73c9c..57194b4 100644 --- a/src/Mapper/Tree/Message/MessagesFlattener.php +++ b/src/Mapper/Tree/Message/MessagesFlattener.php @@ -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) { diff --git a/src/Mapper/Tree/Message/NodeMessage.php b/src/Mapper/Tree/Message/NodeMessage.php index d046d09..01a30a4 100644 --- a/src/Mapper/Tree/Message/NodeMessage.php +++ b/src/Mapper/Tree/Message/NodeMessage.php @@ -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( diff --git a/src/MapperBuilder.php b/src/MapperBuilder.php index e12b0bd..baff73c 100644 --- a/src/MapperBuilder.php +++ b/src/MapperBuilder.php @@ -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) {