Skip to content

Commit 3d058b1

Browse files
authored
Merge pull request #8513 from kenjis/docs-entities
docs: modify sentences slightly in Entity
2 parents 9699a16 + 4538178 commit 3d058b1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

user_guide_src/source/models/entities.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ like ``type[param1, param2]``.
309309

310310
.. literalinclude:: entities/021.php
311311

312-
.. note:: If the casting type is marked as nullable ``?bool`` and the passed value is not null, then the parameter with
312+
.. note:: If the casting type is marked as nullable like ``?bool`` and the passed value is not null, then the parameter with
313313
the value ``nullable`` will be passed to the casting type handler.
314314
If casting type has predefined parameters, then ``nullable`` will be added to the end of the list.
315315

user_guide_src/source/models/entities/018.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
class MyEntity extends Entity
88
{
9-
// Specifying the type for the field
9+
// Specify the type for the field
1010
protected $casts = [
1111
'key' => 'base64',
1212
];

user_guide_src/source/models/entities/020.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
class MyEntity extends Entity
88
{
9-
// Defining a type with parameters
9+
// Define a type with parameters
1010
protected $casts = [
1111
'some_attribute' => 'class[App\SomeClass, param2, param3]',
1212
];

0 commit comments

Comments
 (0)