Skip to content

Commit 8f5e17c

Browse files
committed
Corrected cs and a typo
1 parent d46e48d commit 8f5e17c

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

en/orm/database-basics.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -551,16 +551,15 @@ class::
551551
return null;
552552
}
553553

554-
return $this->pm_decode($value);
555-
}
554+
return $this->pmDecode($valu
556555

557556
public function marshal(mixed $value): mixed
558557
{
559558
if (is_array($value) || $value === null) {
560559
return $value;
561560
}
562561

563-
return $this->pm_decode($value);
562+
return $this->pmDecode($value);
564563
}
565564

566565
public function toDatabase(mixed $value, Driver $driver): mixed
@@ -577,7 +576,7 @@ class::
577576
return PDO::PARAM_STR;
578577
}
579578

580-
protected function pm_decode(mixed $value): mixed
579+
protected function pmDecode(mixed $value): mixed
581580
{
582581
if (preg_match('/^(\d+)([a-zA-Z])>([a-zA-Z])$/', $value, $matches)) {
583582
return [
@@ -658,7 +657,7 @@ used::
658657
$data = $schema->getColumn($column);
659658
$sql = $driver->quoteIdentifier($column);
660659
$sql .= ' JSON';
661-
if (isset($data['null') && $data['null'] === false) {
660+
if (isset($data['null']) && $data['null'] === false) {
662661
$sql .= ' NOT NULL';
663662
}
664663

0 commit comments

Comments
 (0)