Skip to content

Commit

Permalink
Merge pull request codeigniter4#8513 from kenjis/docs-entities
Browse files Browse the repository at this point in the history
docs: modify sentences slightly in Entity
  • Loading branch information
kenjis authored Feb 5, 2024
2 parents 9699a16 + 4538178 commit 3d058b1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion user_guide_src/source/models/entities.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion user_guide_src/source/models/entities/018.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class MyEntity extends Entity
{
// Specifying the type for the field
// Specify the type for the field
protected $casts = [
'key' => 'base64',
];
Expand Down
2 changes: 1 addition & 1 deletion user_guide_src/source/models/entities/020.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]',
];
Expand Down

0 comments on commit 3d058b1

Please sign in to comment.