Skip to content

Commit da02262

Browse files
committed
Merge remote-tracking branch 'upstream/develop' into 4.4
2 parents 448adc7 + 8606a6b commit da02262

File tree

9 files changed

+33
-28
lines changed

9 files changed

+33
-28
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"phpunit/phpcov": "^8.2",
2525
"phpunit/phpunit": "^9.1",
2626
"predis/predis": "^1.1 || ^2.0",
27-
"rector/rector": "0.15.24",
27+
"rector/rector": "0.15.25",
2828
"vimeo/psalm": "^5.0"
2929
},
3030
"suggest": {

system/BaseModel.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ abstract class BaseModel
6363
* The Database connection group that
6464
* should be instantiated.
6565
*
66-
* @var string
67-
* @phpstan-var non-empty-string
66+
* @var string|null
67+
* @phpstan-var non-empty-string|null
6868
*/
6969
protected $DBGroup;
7070

system/CLI/BaseCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ abstract public function run(array $params);
105105
/**
106106
* Can be used by a command to run other commands.
107107
*
108-
* @return mixed
108+
* @return int|void
109109
*
110110
* @throws ReflectionException
111111
*/
@@ -205,7 +205,7 @@ public function getPad(array $array, int $pad): int
205205
/**
206206
* Makes it simple to access our protected properties.
207207
*
208-
* @return mixed
208+
* @return array|Commands|LoggerInterface|string|null
209209
*/
210210
public function __get(string $key)
211211
{

system/CLI/CLI.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,7 @@ public static function getURI(): string
915915
*
916916
* **IMPORTANT:** The index here is one-based instead of zero-based.
917917
*
918-
* @return mixed
918+
* @return string|null
919919
*/
920920
public static function getSegment(int $index)
921921
{

system/Commands/Generators/Views/model.tpl.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ class {class} extends Model
1010
protected $table = '{table}';
1111
protected $primaryKey = 'id';
1212
protected $useAutoIncrement = true;
13-
protected $insertID = 0;
1413
protected $returnType = {return};
1514
protected $useSoftDeletes = false;
1615
protected $protectFields = true;

system/I18n/TimeDifference.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ public function humanize(?string $locale = null): string
271271
*
272272
* @param string $name
273273
*
274-
* @return mixed
274+
* @return float|int|null
275275
*/
276276
public function __get($name)
277277
{

system/Router/RouteCollectionInterface.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ interface RouteCollectionInterface
3131
* @param array|Closure|string $to
3232
* @param array $options
3333
*
34-
* @return mixed
34+
* @return RouteCollectionInterface
3535
*/
3636
public function add(string $from, $to, ?array $options = null);
3737

@@ -46,31 +46,31 @@ public function add(string $from, $to, ?array $options = null);
4646
* @param array|string $placeholder
4747
* @param string $pattern
4848
*
49-
* @return mixed
49+
* @return RouteCollectionInterface
5050
*/
5151
public function addPlaceholder($placeholder, ?string $pattern = null);
5252

5353
/**
5454
* Sets the default namespace to use for Controllers when no other
5555
* namespace has been specified.
5656
*
57-
* @return mixed
57+
* @return RouteCollectionInterface
5858
*/
5959
public function setDefaultNamespace(string $value);
6060

6161
/**
6262
* Sets the default controller to use when no other controller has been
6363
* specified.
6464
*
65-
* @return mixed
65+
* @return RouteCollectionInterface
6666
*/
6767
public function setDefaultController(string $value);
6868

6969
/**
7070
* Sets the default method to call on the controller when no other
7171
* method has been set in the route.
7272
*
73-
* @return mixed
73+
* @return RouteCollectionInterface
7474
*/
7575
public function setDefaultMethod(string $value);
7676

@@ -81,7 +81,7 @@ public function setDefaultMethod(string $value);
8181
* find words and meaning in the URI for better SEO. But it
8282
* doesn't work well with PHP method names....
8383
*
84-
* @return mixed
84+
* @return RouteCollectionInterface
8585
*/
8686
public function setTranslateURIDashes(bool $value);
8787

user_guide_src/source/general/common_functions.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,12 +396,12 @@ Miscellaneous Functions
396396
397397
:param string $method: Route name or Controller::method
398398
:param int|string ...$params: One or more parameters to be passed to the route. The last parameter allows you to set the locale.
399-
:returns: a route (URI path)
399+
:returns: a route path (URI path relative to baseURL)
400400
:rtype: string
401401

402402
.. note:: This function requires the controller/method to have a route defined in **app/Config/routes.php**.
403403

404-
.. important:: ``route_to()`` returns a *route*, not a full URI path for your site.
404+
.. important:: ``route_to()`` returns a *route* path, not a full URI path for your site.
405405
If your **baseURL** contains sub folders, the return value is not the same
406406
as the URI to link. In that case, just use :php:func:`url_to()` instead.
407407
See also :ref:`urls-url-structure`.

user_guide_src/source/general/urls.rst

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,15 @@ When you have the Base URL **https://www.example.com/** and imagine the followin
2929

3030
We use the following terms:
3131

32-
======== ============================
33-
Base URL **https://www.example.com/**
34-
URI path /blog/news/2022/10
35-
Route /blog/news/2022/10
36-
Query page=2
37-
======== ============================
32+
========== ============================ =========================================
33+
Term Example Description
34+
========== ============================ =========================================
35+
Base URL **https://www.example.com/** Base URL is often denoted as **baseURL**.
36+
URI path /blog/news/2022/10
37+
Route path /blog/news/2022/10 The URI path relative to the Base URL.
38+
It is also called as **URI string**.
39+
Query page=2
40+
========== ============================ =========================================
3841

3942
Base URL contains Sub folders
4043
-----------------------------
@@ -45,12 +48,15 @@ When you have the Base URL **https://www.example.com/ci-blog/** and imagine the
4548

4649
We use the following terms:
4750

48-
======== ====================================
49-
Base URL **https://www.example.com/ci-blog/**
50-
URI path /ci-blog/blog/news/2022/10
51-
Route /blog/news/2022/10
52-
Query page=2
53-
======== ====================================
51+
========== ==================================== =========================================
52+
Term Example Description
53+
========== ==================================== =========================================
54+
Base URL **https://www.example.com/ci-blog/** Base URL is often denoted as **baseURL**.
55+
URI path /ci-blog/blog/news/2022/10
56+
Route path /blog/news/2022/10 The URI path relative to the Base URL.
57+
It is also called as **URI string**.
58+
Query page=2
59+
========== ==================================== =========================================
5460

5561
.. _urls-remove-index-php:
5662

0 commit comments

Comments
 (0)