Skip to content

Commit b837ab9

Browse files
committed
Merge remote-tracking branch 'upstream/develop' into 4.6
2 parents b068de9 + 28d7607 commit b837ab9

File tree

6 files changed

+41
-22
lines changed

6 files changed

+41
-22
lines changed

.github/workflows/deploy-distributables.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,15 @@ jobs:
159159
token: ${{ secrets.ACCESS_TOKEN }}
160160
path: userguide
161161

162+
- name: Setup Python
163+
uses: actions/setup-python@v5
164+
with:
165+
python-version: '3.12'
166+
162167
- name: Install Sphinx
163168
run: |
164-
sudo apt install python3-sphinx
165-
sudo pip3 install sphinxcontrib-phpdomain
166-
sudo pip3 install sphinx_rtd_theme
169+
python -m pip install --upgrade pip
170+
pip install -r ./source/user_guide_src/requirements.txt
167171
168172
- name: Chmod
169173
run: chmod +x ./source/.github/scripts/deploy-userguide

.github/workflows/deploy-userguide-latest.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,20 @@ jobs:
3333
php-version: '8.1'
3434
coverage: none
3535

36-
# Build the latest User Guide
37-
- name: Build with Sphinx
38-
uses: ammaraskar/[email protected]
36+
- name: Setup Python
37+
uses: actions/setup-python@v5
3938
with:
40-
docs-folder: user_guide_src/
39+
python-version: '3.12'
40+
41+
- name: Install Sphinx
42+
run: |
43+
python -m pip install --upgrade pip
44+
pip install -r user_guide_src/requirements.txt
45+
46+
# Build the latest User Guide
47+
- name: Build Docs with Sphinx
48+
run: make html
49+
working-directory: user_guide_src
4150

4251
- name: Add "Edit this page" links
4352
run: |

.github/workflows/test-userguide.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,19 @@ jobs:
2626
- name: Checkout
2727
uses: actions/checkout@v4
2828

29+
- name: Setup Python
30+
uses: actions/setup-python@v5
31+
with:
32+
python-version: '3.12'
33+
34+
- name: Install Sphinx
35+
run: |
36+
python -m pip install --upgrade pip
37+
pip install -r user_guide_src/requirements.txt
38+
2939
- name: Detect usage of tabs in RST files
3040
run: php utils/check_tabs_in_rst.php
3141

32-
- uses: ammaraskar/[email protected]
33-
with:
34-
docs-folder: user_guide_src
35-
build-command: 'make html SPHINXOPTS="-W --keep-going -w /tmp/sphinx-log"'
42+
- name: Build Docs with Sphinx
43+
run: make html SPHINXOPTS="-W --keep-going -w /tmp/sphinx-log"
44+
working-directory: user_guide_src

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"phpunit/phpcov": "^9.0.2 || ^10.0",
2929
"phpunit/phpunit": "^10.5.16 || ^11.2",
3030
"predis/predis": "^1.1 || ^2.0",
31-
"rector/rector": "1.2.7"
31+
"rector/rector": "1.2.8"
3232
},
3333
"replace": {
3434
"codeigniter4/framework": "self.version"

rector.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,11 @@
1212
*/
1313

1414
use Rector\Caching\ValueObject\Storage\FileCacheStorage;
15-
use Rector\CodeQuality\Rector\BooleanAnd\SimplifyEmptyArrayCheckRector;
1615
use Rector\CodeQuality\Rector\Class_\CompleteDynamicPropertiesRector;
1716
use Rector\CodeQuality\Rector\Empty_\SimplifyEmptyCheckOnEmptyArrayRector;
1817
use Rector\CodeQuality\Rector\Expression\InlineIfToExplicitIfRector;
1918
use Rector\CodeQuality\Rector\Foreach_\UnusedForeachValueToArrayKeysRector;
2019
use Rector\CodeQuality\Rector\FuncCall\ChangeArrayPushToArrayAssignRector;
21-
use Rector\CodeQuality\Rector\FuncCall\SimplifyStrposLowerRector;
2220
use Rector\CodeQuality\Rector\FuncCall\SingleInArrayToCompareRector;
2321
use Rector\CodeQuality\Rector\FunctionLike\SimplifyUselessVariableRector;
2422
use Rector\CodeQuality\Rector\If_\CombineIfRector;
@@ -190,7 +188,6 @@
190188
CountArrayToEmptyArrayComparisonRector::class,
191189
ChangeNestedForeachIfsToEarlyContinueRector::class,
192190
ChangeIfElseValueAssignToEarlyReturnRector::class,
193-
SimplifyStrposLowerRector::class,
194191
CombineIfRector::class,
195192
SimplifyIfReturnBoolRector::class,
196193
InlineIfToExplicitIfRector::class,
@@ -203,7 +200,6 @@
203200
RemoveErrorSuppressInTryCatchStmtsRector::class,
204201
FuncGetArgsToVariadicParamRector::class,
205202
MakeInheritedMethodVisibilitySameAsParentRector::class,
206-
SimplifyEmptyArrayCheckRector::class,
207203
SimplifyEmptyCheckOnEmptyArrayRector::class,
208204
TernaryEmptyArrayArrayDimFetchToCoalesceRector::class,
209205
EmptyOnNullableObjectToInstanceOfRector::class,
@@ -223,4 +219,5 @@
223219
->withConfiguredRule(StringClassNameToClassConstantRector::class, [
224220
// keep '\\' prefix string on string '\Foo\Bar'
225221
StringClassNameToClassConstantRector::SHOULD_KEEP_PRE_SLASH => true,
226-
]);
222+
])
223+
->withCodeQualityLevel(9);

tests/system/Database/Live/UpdateTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ public function testUpdateBatchConstraintsRawSqlAndAlias(): void
466466

467467
public function testUpdateBatchUpdateFieldsAndAlias(): void
468468
{
469-
if ($this->db->DBDriver === 'SQLite3' && ! (version_compare($this->db->getVersion(), '3.33.0') >= 0)) {
469+
if ($this->db->DBDriver === 'SQLite3' && version_compare($this->db->getVersion(), '3.33.0') < 0) {
470470
$this->markTestSkipped('Only SQLite 3.33 and newer can complete this test.');
471471
}
472472

@@ -557,7 +557,7 @@ public function testUpdateBatchUpdateFieldsAndAlias(): void
557557

558558
public function testUpdateBatchWithoutOnConstraint(): void
559559
{
560-
if ($this->db->DBDriver === 'SQLite3' && ! (version_compare($this->db->getVersion(), '3.33.0') >= 0)) {
560+
if ($this->db->DBDriver === 'SQLite3' && version_compare($this->db->getVersion(), '3.33.0') < 0) {
561561
$this->markTestSkipped('Only SQLite 3.33 and newer can complete this test.');
562562
}
563563

@@ -599,7 +599,7 @@ public function testUpdateBatchWithoutOnConstraint(): void
599599

600600
public function testRawSqlConstraint(): void
601601
{
602-
if ($this->db->DBDriver === 'SQLite3' && ! (version_compare($this->db->getVersion(), '3.33.0') >= 0)) {
602+
if ($this->db->DBDriver === 'SQLite3' && version_compare($this->db->getVersion(), '3.33.0') < 0) {
603603
$this->markTestSkipped('Only SQLite 3.33 and newer can complete this test.');
604604
}
605605

@@ -623,7 +623,7 @@ public function testRawSqlConstraint(): void
623623

624624
public function testRawSqlConstraintWithKey(): void
625625
{
626-
if ($this->db->DBDriver === 'SQLite3' && ! (version_compare($this->db->getVersion(), '3.33.0') >= 0)) {
626+
if ($this->db->DBDriver === 'SQLite3' && version_compare($this->db->getVersion(), '3.33.0') < 0) {
627627
$this->markTestSkipped('Only SQLite 3.33 and newer can complete this test.');
628628
}
629629

@@ -710,7 +710,7 @@ public function testUpdateBatchWithQuery(): void
710710
];
711711
$this->db->table('user2')->insertBatch($data);
712712

713-
if ($this->db->DBDriver === 'SQLite3' && ! (version_compare($this->db->getVersion(), '3.33.0') >= 0)) {
713+
if ($this->db->DBDriver === 'SQLite3' && version_compare($this->db->getVersion(), '3.33.0') < 0) {
714714
$this->markTestSkipped('Only SQLite 3.33 and newer can complete this test.');
715715
}
716716

0 commit comments

Comments
 (0)