Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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