Skip to content

Commit d19d034

Browse files
committed
Merge remote-tracking branch 'upstream/develop' into 4.4
Conflicts: user_guide_src/source/general/errors/010.php user_guide_src/source/general/errors/011.php
2 parents 8c92731 + 1add05a commit d19d034

File tree

5 files changed

+8
-20
lines changed

5 files changed

+8
-20
lines changed

admin/pre-commit

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,6 @@ if [ "$STAGED_PHP_FILES" != "" ]; then
2020
done
2121
fi
2222

23-
if [ "$FILES" != "" ]; then
24-
echo "Running PHPStan..."
25-
26-
# Run on whole codebase
27-
if [ -d /proc/cygdrive ]; then
28-
XDEBUG_MODE=off ./vendor/bin/phpstan analyse
29-
else
30-
XDEBUG_MODE=off php ./vendor/bin/phpstan analyse
31-
fi
32-
33-
if [ $? != 0 ]; then
34-
echo "Fix the phpstan error(s) before commit."
35-
exit 1
36-
fi
37-
fi
38-
3923
if [ "$FILES" != "" ]; then
4024
echo "Running PHP CS Fixer..."
4125

system/ThirdParty/Kint/Parser/Parser.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,11 @@ private function parseArray(array &$var, Value $o): Value
374374
}
375375

376376
$stash = $val;
377-
$copy[$i] = $refmarker;
377+
try {
378+
$copy[$i] = $refmarker;
379+
} catch (TypeError $e) {
380+
$child->reference = true;
381+
}
378382
if ($val === $refmarker) {
379383
$child->reference = true;
380384
$val = $stash;

user_guide_src/source/general/errors.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ forcing a redirect to a specific route or URL:
109109

110110
.. literalinclude:: errors/010.php
111111

112-
``$route`` may be a named route, relative URI, or a complete URL. You can also supply a
112+
``$uri`` may be a URI path relative to baseURL, or a complete URL. You can also supply a
113113
redirect code to use instead of the default (``302``, "temporary redirect"):
114114

115115
.. literalinclude:: errors/011.php
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<?php
22

3-
throw new \CodeIgniter\HTTP\Exceptions\RedirectException($route);
3+
throw new \CodeIgniter\HTTP\Exceptions\RedirectException($uri);
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<?php
22

3-
throw new \CodeIgniter\HTTP\Exceptions\RedirectException($route, 301);
3+
throw new \CodeIgniter\HTTP\Exceptions\RedirectException($uri, 301);

0 commit comments

Comments
 (0)