Skip to content

Commit e8a59bb

Browse files
authored
Merge branch 'codeigniter4:develop' into 4.6-servicesreload
2 parents 56f1ed0 + f927928 commit e8a59bb

File tree

4 files changed

+38
-27
lines changed

4 files changed

+38
-27
lines changed

admin/userguide/.github/scripts/deploy

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
# Deploys the User Guide to the production
44
# website. Triggered by updates to the GitHub
5-
# repo's master branch.
5+
# codeigniter4/userguide repo's master branch.
6+
# See https://github.com/codeigniter4/userguide/blob/master/.github/workflows/deploy.yml
67

78
REPO=/opt/userguide
89
SITE=/home/public_html/userguides/userguide4
@@ -11,5 +12,7 @@ cd "$REPO"
1112
git switch master
1213
git pull
1314

14-
rm -rf "$SITE"
15-
cp -R "$REPO/docs" "$SITE"
15+
cp -R "$REPO/docs" "$SITE.new"
16+
mv "$SITE" "$SITE.old"
17+
mv "$SITE.new" "$SITE"
18+
rm -rf "$SITE.old"

contributing/pull_request.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,10 +200,13 @@ working on your contribution.
200200

201201
### Branching
202202

203-
All bug fixes should be sent to the __"develop"__ branch, this is where the next
204-
bug fix version will be developed.
203+
- All bug fix PRs should be sent to the __"develop"__ branch, this is where the
204+
next bug fix version will be developed.
205+
- PRs with any enhancement should be sent to next minor version branch, e.g. __"4.6"__
205206

206-
PRs with any enhancement should be sent to next minor version branch, e.g. __"4.6"__
207+
> [!NOTE]
208+
> If you sent your PR to the wrong branch, see
209+
> [Contribution Workflow](./workflow.md#if-you-sent-to-the-wrong-branch).
207210
208211
The __"master"__ branch will always contain the latest stable version and is kept
209212
clean so a "hotfix" (e.g. an emergency security patch) can be applied to the
@@ -235,6 +238,10 @@ This is *not* just a "signed-off-by" commit, but instead, a digitally signed one
235238

236239
See [Contribution signing](./signing.md) for details.
237240

241+
> [!NOTE]
242+
> If you forgot GPG-signing your commits, see
243+
> [Contribution Workflow](./workflow.md#gpg-signing-old-commits).
244+
238245
### Static Analysis on PHP code
239246

240247
We cannot, at all times, guarantee that all PHP code submitted on pull requests

contributing/workflow.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ values for when you try these:
1818

1919
- All bug fix PRs should be sent to the __"develop"__ branch, this is where the
2020
next bug fix version will be developed.
21-
- PRs with any enhancement should be sent to next minor version branch, e.g. __"4.5"__
21+
- PRs with any enhancement should be sent to next minor version branch, e.g. __"4.6"__
2222

2323
The "master" branch will always contain the latest stable
2424
version and is kept clean so a "hotfix" (e.g: an emergency security
@@ -114,7 +114,7 @@ is optional, and implies a sort of namespacing if used.
114114

115115
- All bug fix PRs should be sent to the __"develop"__ branch, this is where the
116116
next bug fix version will be developed.
117-
- PRs with any enhancement should be sent to next minor version branch, e.g. __"4.5"__
117+
- PRs with any enhancement should be sent to next minor version branch, e.g. __"4.6"__
118118

119119
For instance, if you send a PR to __"develop"__ branch, make sure you are in the
120120
*develop* branch, and create a new bugfix branch, based on *develop*, for a new
@@ -126,11 +126,11 @@ feature you are creating:
126126
```
127127

128128
If you send a PR with an enhancement, make sure you are in the *next minor version*
129-
branch, and create a new feature branch, based on, e.g., __"4.5"__, for a new
129+
branch, and create a new feature branch, based on, e.g., __"4.6"__, for a new
130130
feature you are creating:
131131

132132
```console
133-
> git switch 4.5
133+
> git switch 4.6
134134
> git switch -c new/mind-reader
135135
```
136136

@@ -283,7 +283,7 @@ switching to the branch you wish to contribute, and then clicking on
283283
"New pull request".
284284

285285
Make sure the pull request is for the shared __"develop"__ or next minor version
286-
branch, e.g. __"4.5"__, or it may be rejected.
286+
branch, e.g. __"4.6"__, or it may be rejected.
287287

288288
Make sure that the PR title is helpful for the maintainers and other
289289
developers. Add any comments appropriate, for instance asking for
@@ -324,7 +324,7 @@ And if your PRs have the breaking changes, label the following label:
324324
If you are asked for changes in the review, commit the fix in your branch and
325325
push it to GitHub again.
326326

327-
If the __"develop"__ or next minor version branch, e.g. __"4.5"__, progresses
327+
If the __"develop"__ or next minor version branch, e.g. __"4.6"__, progresses
328328
and conflicts arise that prevent merging, or if you are asked to *rebase*,
329329
do the following:
330330

@@ -364,7 +364,7 @@ And finally push your local branch to your GitHub repository:
364364

365365
If you have sent a PR to the wrong branch, you need to create a new PR branch.
366366

367-
When you have the PR branch `feat-abc` and you should have sent the PR to __"4.5"__,
367+
When you have the PR branch `feat-abc` and you should have sent the PR to __"4.6"__,
368368
but you created the PR branch from `develop` and sent a PR.
369369

370370
Copy the IDs of any commits you made that you want to keep:
@@ -373,13 +373,13 @@ Copy the IDs of any commits you made that you want to keep:
373373
> git log
374374
```
375375

376-
Update your __"4.5"__ branch:
376+
Update your __"4.6"__ branch:
377377

378378
```console
379379
> git fetch upstream
380-
> git switch 4.5
381-
> git merge upstream/4.5
382-
> git push origin 4.5
380+
> git switch 4.6
381+
> git merge upstream/4.6
382+
> git push origin 4.6
383383
```
384384

385385
(Optional) Create a new branch as a backup, just in case:
@@ -388,10 +388,10 @@ Update your __"4.5"__ branch:
388388
> git branch feat-abc.bk feat-abc
389389
```
390390

391-
Rebase your PR branch from `develop` onto __"4.5"__:
391+
Rebase your PR branch from `develop` onto __"4.6"__:
392392

393393
```console
394-
> git rebase --onto 4.5 develop feat-abc
394+
> git rebase --onto 4.6 develop feat-abc
395395
```
396396

397397
Force push.
@@ -400,7 +400,7 @@ Force push.
400400
> git push --force-with-lease origin feat-abc
401401
```
402402

403-
On the GitHub PR page, change the base branch to the correct branch __"4.5"__.
403+
On the GitHub PR page, change the base branch to the correct branch __"4.6"__.
404404

405405
## Cleanup
406406

user_guide_src/source/libraries/uri.rst

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ Since v4.4.0, if you don't pass a URL, it returns the current URI:
3939
The Current URI
4040
---------------
4141

42-
Many times, all you really want is an object representing the current URL of this request.
43-
You can use the :php:func:`current_url()` function available in the :doc:`../helpers/url_helper`:
42+
When you need an object representing the current URL of the request,
43+
you can use the :php:func:`current_url()` function available in the :doc:`../helpers/url_helper`:
4444

4545
.. literalinclude:: uri/004.php
4646
:lines: 2-
@@ -141,12 +141,12 @@ When using the ``setPort()`` method, the port will be checked that it is within
141141
Path
142142
----
143143

144-
The path are all of the segments within the site itself. As expected, the ``getPath()`` and ``setPath()`` methods
144+
The path is all of the segments within the site itself. As expected, the ``getPath()`` and ``setPath()`` methods
145145
can be used to manipulate it:
146146

147147
.. literalinclude:: uri/016.php
148148

149-
.. note:: When setting the path this way, or any other way the class allows, it is sanitized to encode any dangerous
149+
.. note:: When setting the path it is sanitized to encode any dangerous
150150
characters, and remove dot segments for safety.
151151

152152
.. note:: Since v4.4.0, the ``SiteURI::getRoutePath()`` method,
@@ -166,7 +166,7 @@ be set as a string currently.
166166

167167
.. literalinclude:: uri/017.php
168168

169-
The ``setQuery()`` method overwrite any existing query variables.
169+
The ``setQuery()`` method overwrites existing query variables.
170170

171171
.. note:: Query values cannot contain fragments. An InvalidArgumentException will be thrown if it does.
172172

@@ -177,7 +177,7 @@ You can set query values using an array:
177177

178178
.. literalinclude:: uri/018.php
179179

180-
The ``setQueryArray()`` method overwrite any existing query variables.
180+
The ``setQueryArray()`` method overwrites existing query variables.
181181

182182
Adding Query Value
183183
^^^^^^^^^^^^^^^^^^
@@ -196,11 +196,12 @@ You can filter the query values returned by passing an options array to the ``ge
196196

197197
.. literalinclude:: uri/020.php
198198

199-
This only changes the values returned during this one call. If you need to modify the URI's query values more permanently,
199+
This only changes the values returned during this one call.
200200

201201
Changing Query Values
202202
^^^^^^^^^^^^^^^^^^^^^
203203

204+
If you need to modify the URI's query values more permanently,
204205
you can use the ``stripQuery()`` and ``keepQuery()`` methods to change the actual object's query variable collection:
205206

206207
.. literalinclude:: uri/021.php

0 commit comments

Comments
 (0)