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]', ];