From 4538178b5c62e0c5032b0bef222a7b02ffe97431 Mon Sep 17 00:00:00 2001 From: kenjis Date: Mon, 5 Feb 2024 11:37:21 +0900 Subject: [PATCH] docs: modify sentences slightly --- user_guide_src/source/models/entities.rst | 2 +- user_guide_src/source/models/entities/018.php | 2 +- user_guide_src/source/models/entities/020.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/user_guide_src/source/models/entities.rst b/user_guide_src/source/models/entities.rst index 072d41e85793..6e683dcafe0b 100644 --- a/user_guide_src/source/models/entities.rst +++ b/user_guide_src/source/models/entities.rst @@ -309,7 +309,7 @@ like ``type[param1, param2]``. .. literalinclude:: entities/021.php -.. note:: If the casting type is marked as nullable ``?bool`` and the passed value is not null, then the parameter with +.. note:: If the casting type is marked as nullable like ``?bool`` and the passed value is not null, then the parameter with the value ``nullable`` will be passed to the casting type handler. If casting type has predefined parameters, then ``nullable`` will be added to the end of the list. diff --git a/user_guide_src/source/models/entities/018.php b/user_guide_src/source/models/entities/018.php index 2bb8750affe1..1469f5627138 100644 --- a/user_guide_src/source/models/entities/018.php +++ b/user_guide_src/source/models/entities/018.php @@ -6,7 +6,7 @@ class MyEntity extends Entity { - // Specifying the type for the field + // Specify the type for the field protected $casts = [ 'key' => 'base64', ]; diff --git a/user_guide_src/source/models/entities/020.php b/user_guide_src/source/models/entities/020.php index 7d3708b044d8..bedf6d12f947 100644 --- a/user_guide_src/source/models/entities/020.php +++ b/user_guide_src/source/models/entities/020.php @@ -6,7 +6,7 @@ class MyEntity extends Entity { - // Defining a type with parameters + // Define a type with parameters protected $casts = [ 'some_attribute' => 'class[App\SomeClass, param2, param3]', ];