Skip to content

Commit 428057a

Browse files
committed
Merge remote-tracking branch 'upstream/develop' into 4.3
Conflicts: phpstan-baseline.neon.dist
2 parents 0c01f8b + 3ba1eb5 commit 428057a

File tree

2 files changed

+2
-22
lines changed

2 files changed

+2
-22
lines changed

phpstan-baseline.neon.dist

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,6 @@ parameters:
3535
count: 1
3636
path: system/Cache/Handlers/FileHandler.php
3737

38-
-
39-
message: "#^Method MemcachePool\\:\\:decrement\\(\\) invoked with 4 parameters, 1\\-2 required\\.$#"
40-
count: 1
41-
path: system/Cache/Handlers/MemcachedHandler.php
42-
43-
-
44-
message: "#^Method MemcachePool\\:\\:increment\\(\\) invoked with 4 parameters, 1\\-2 required\\.$#"
45-
count: 1
46-
path: system/Cache/Handlers/MemcachedHandler.php
47-
4838
-
4939
message: "#^Unreachable statement \\- code above always terminates\\.$#"
5040
count: 1
@@ -470,11 +460,6 @@ parameters:
470460
count: 1
471461
path: system/HTTP/Request.php
472462

473-
-
474-
message: "#^Cannot unset offset 'path' on array{host: non-empty-string}\\.$#"
475-
count: 1
476-
path: system/HTTP/URI.php
477-
478463
-
479464
message: "#^Property CodeIgniter\\\\HTTP\\\\URI\\:\\:\\$fragment \\(string\\) on left side of \\?\\? is not nullable\\.$#"
480465
count: 1
@@ -505,11 +490,6 @@ parameters:
505490
count: 1
506491
path: system/Helpers/number_helper.php
507492

508-
-
509-
message: "#^Variable \\$pool might not be defined\\.$#"
510-
count: 2
511-
path: system/Helpers/text_helper.php
512-
513493
-
514494
message: "#^Variable \\$count might not be defined\\.$#"
515495
count: 1

system/Model.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ public function insert($data = null, bool $returnID = true)
681681
{
682682
if (! empty($this->tempData['data'])) {
683683
if (empty($data)) {
684-
$data = $this->tempData['data'] ?? null;
684+
$data = $this->tempData['data'];
685685
} else {
686686
$data = $this->transformDataToArray($data, 'insert');
687687
$data = array_merge($this->tempData['data'], $data);
@@ -707,7 +707,7 @@ public function update($id = null, $data = null): bool
707707
{
708708
if (! empty($this->tempData['data'])) {
709709
if (empty($data)) {
710-
$data = $this->tempData['data'] ?? null;
710+
$data = $this->tempData['data'];
711711
} else {
712712
$data = $this->transformDataToArray($data, 'update');
713713
$data = array_merge($this->tempData['data'], $data);

0 commit comments

Comments
 (0)