Skip to content

Commit 418c090

Browse files
authored
Merge pull request #36 from tattersoftware/workflows
Fix workflows
2 parents 90df652 + 4698ecb commit 418c090

File tree

8 files changed

+12
-17
lines changed

8 files changed

+12
-17
lines changed

.github/workflows/analyze.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
strategy:
3030
fail-fast: false
3131
matrix:
32-
php-versions: ['7.3', '7.4', '8.0']
32+
php-versions: ['7.3', '7.4', '8.0', '8.1']
3333
steps:
3434
- name: Checkout
3535
uses: actions/checkout@v2

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414

1515
strategy:
1616
matrix:
17-
php-versions: ['7.3', '7.4', '8.0']
17+
php-versions: ['7.3', '7.4', '8.0', '8.1']
1818

1919
runs-on: ubuntu-latest
2020

composer.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"php": "^7.3 || ^8.0"
2525
},
2626
"require-dev": {
27-
"codeigniter4/codeigniter4": "dev-develop",
27+
"codeigniter4/framework": "^4.1",
2828
"tatter/agents": "^1.2",
2929
"tatter/tools": "^1.15"
3030
},
@@ -41,12 +41,6 @@
4141
"Tests\\Support\\": "tests/_support"
4242
}
4343
},
44-
"repositories": [
45-
{
46-
"type": "vcs",
47-
"url": "https://github.com/codeigniter4/CodeIgniter4"
48-
}
49-
],
5044
"minimum-stability": "dev",
5145
"prefer-stable": true,
5246
"scripts": {

depfile.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
paths:
22
- ./src
3-
- ./vendor/codeigniter4/codeigniter4/system
3+
- ./vendor/codeigniter4/framework/system
44
- ./vendor/tatter
55
exclude_files:
66
- '#.*test.*#i'

infection.json.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@
1515
"mutators": {
1616
"@default": true
1717
},
18-
"bootstrap": "vendor/codeigniter4/codeigniter4/system/Test/bootstrap.php"
18+
"bootstrap": "vendor/codeigniter4/framework/system/Test/bootstrap.php"
1919
}

phpstan.neon.dist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ parameters:
55
- src
66
- tests
77
bootstrapFiles:
8-
- vendor/codeigniter4/codeigniter4/system/Test/bootstrap.php
8+
- vendor/codeigniter4/framework/system/Test/bootstrap.php
99
excludePaths:
1010
- src/Config/Routes.php
1111
- src/Views/*
@@ -20,7 +20,7 @@ parameters:
2020
- Tatter\Schemas\Reader\Handlers\CacheHandler
2121
- Tatter\Schemas\Structures\Mergeable
2222
scanDirectories:
23-
- vendor/codeigniter4/codeigniter4/system/Helpers
23+
- vendor/codeigniter4/framework/system/Helpers
2424
dynamicConstantNames:
2525
- APP_NAMESPACE
2626
- CI_DEBUG

phpunit.xml.dist

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd"
4-
bootstrap="vendor/codeigniter4/codeigniter4/system/Test/bootstrap.php"
4+
bootstrap="vendor/codeigniter4/framework/system/Test/bootstrap.php"
55
backupGlobals="false"
66
beStrictAboutCoversAnnotation="true"
77
beStrictAboutOutputDuringTests="true"
@@ -80,10 +80,10 @@
8080
<const name="HOMEPATH" value="./"/>
8181

8282
<!-- Directory containing the Paths config file -->
83-
<const name="CONFIGPATH" value="./vendor/codeigniter4/codeigniter4/app/Config/"/>
83+
<const name="CONFIGPATH" value="./vendor/codeigniter4/framework/app/Config/"/>
8484

8585
<!-- Directory containing the front controller (index.php) -->
86-
<const name="PUBLICPATH" value="./vendor/codeigniter4/codeigniter4/public/"/>
86+
<const name="PUBLICPATH" value="./vendor/codeigniter4/framework/public/"/>
8787

8888
<!-- https://getcomposer.org/xdebug -->
8989
<env name="COMPOSER_DISABLE_XDEBUG_WARN" value="1"/>

src/Structures/Mergeable.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use ArrayIterator;
66
use Countable;
77
use IteratorAggregate;
8+
use Traversable;
89

910
class Mergeable implements Countable, IteratorAggregate
1011
{
@@ -83,7 +84,7 @@ public function count(): int
8384
*
8485
* @return ArrayIterator
8586
*/
86-
public function getIterator()
87+
public function getIterator(): Traversable
8788
{
8889
return new ArrayIterator($this); // @phpstan-ignore-line
8990
}

0 commit comments

Comments
 (0)