-
Notifications
You must be signed in to change notification settings - Fork 26
chore: update dependencies to support PHP 8.1 - 8.4 #145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
5419dbf
move to PHP 8.1 and PHPUnit 10
michalsn 683d1c2
update tests
michalsn 8ec7dfe
cs fix
michalsn 5a5152f
update workflows
michalsn ac07192
update php version in the docs
michalsn 5a43fb7
update rector config
michalsn 164cf29
update psalm config
michalsn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| parameters: | ||
| ignoreErrors: | ||
| - | ||
| message: '#^Offset string does not exist on list\<CodeIgniter\\Settings\\Handlers\\BaseHandler\>\.$#' | ||
| identifier: offsetAccess.notFound | ||
| count: 1 | ||
| path: src/Settings.php | ||
|
|
||
| - | ||
| message: '#^Call to method PHPUnit\\Framework\\Assert\:\:assertInstanceOf\(\) with ''CodeIgniter\\\\Settings\\\\Settings'' and CodeIgniter\\Settings\\Settings will always evaluate to true\.$#' | ||
| identifier: method.alreadyNarrowedType | ||
| count: 1 | ||
| path: tests/HelperTest.php |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,22 +1,21 @@ | ||
| includes: | ||
| - phpstan-baseline.neon | ||
| parameters: | ||
| tmpDir: build/phpstan | ||
| level: 5 | ||
| paths: | ||
| - src/ | ||
| - tests/ | ||
| bootstrapFiles: | ||
| - vendor/codeigniter4/framework/system/Test/bootstrap.php | ||
| excludePaths: | ||
| - src/Config/Routes.php | ||
| - src/Views/* | ||
| ignoreErrors: | ||
| universalObjectCratesClasses: | ||
| - CodeIgniter\Entity | ||
| - CodeIgniter\Entity\Entity | ||
| - Faker\Generator | ||
| scanDirectories: | ||
| - vendor/codeigniter4/framework/system/Helpers | ||
| dynamicConstantNames: | ||
| - APP_NAMESPACE | ||
| - CI_DEBUG | ||
| - ENVIRONMENT | ||
| tmpDir: build/phpstan | ||
| level: 5 | ||
| paths: | ||
| - src/ | ||
| - tests/ | ||
| bootstrapFiles: | ||
| - vendor/codeigniter4/framework/system/Test/bootstrap.php | ||
| excludePaths: | ||
| universalObjectCratesClasses: | ||
| - CodeIgniter\Entity | ||
| - CodeIgniter\Entity\Entity | ||
| - Faker\Generator | ||
| scanDirectories: | ||
| - vendor/codeigniter4/framework/system/Helpers | ||
| dynamicConstantNames: | ||
| - APP_NAMESPACE | ||
| - CI_DEBUG | ||
| - ENVIRONMENT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,102 +1,83 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
| xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd" | ||
| bootstrap="vendor/codeigniter4/framework/system/Test/bootstrap.php" | ||
| backupGlobals="false" | ||
| beStrictAboutCoversAnnotation="true" | ||
| beStrictAboutOutputDuringTests="true" | ||
| beStrictAboutTodoAnnotatedTests="true" | ||
| colors="true" | ||
| convertErrorsToExceptions="true" | ||
| convertNoticesToExceptions="true" | ||
| convertWarningsToExceptions="true" | ||
| executionOrder="random" | ||
| failOnRisky="true" | ||
| failOnWarning="true" | ||
| stopOnError="false" | ||
| stopOnFailure="false" | ||
| stopOnIncomplete="false" | ||
| stopOnSkipped="false" | ||
| verbose="true"> | ||
| xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" | ||
| bootstrap="vendor/codeigniter4/framework/system/Test/bootstrap.php" | ||
| backupGlobals="false" | ||
| beStrictAboutOutputDuringTests="true" | ||
| colors="true" | ||
| executionOrder="random" | ||
| failOnRisky="true" | ||
| failOnWarning="true" | ||
| stopOnError="false" | ||
| stopOnFailure="false" | ||
| stopOnIncomplete="false" | ||
| stopOnSkipped="false" | ||
| cacheDirectory="build/.phpunit.cache" | ||
| beStrictAboutCoverageMetadata="true"> | ||
|
|
||
| <coverage includeUncoveredFiles="true" processUncoveredFiles="true"> | ||
| <include> | ||
| <directory suffix=".php">./src/</directory> | ||
| </include> | ||
| <exclude> | ||
| <directory suffix=".php">./src/Config</directory> | ||
| <directory suffix=".php">./src/Views</directory> | ||
| </exclude> | ||
| <report> | ||
| <clover outputFile="build/phpunit/clover.xml"/> | ||
| <html outputDirectory="build/phpunit/html"/> | ||
| <php outputFile="build/phpunit/coverage.serialized"/> | ||
| <text outputFile="php://stdout" showUncoveredFiles="false"/> | ||
| <xml outputDirectory="build/phpunit/xml-coverage"/> | ||
| </report> | ||
| </coverage> | ||
| <coverage includeUncoveredFiles="true"> | ||
| <report> | ||
| <clover outputFile="build/phpunit/clover.xml"/> | ||
| <html outputDirectory="build/phpunit/html"/> | ||
| <php outputFile="build/phpunit/coverage.serialized"/> | ||
| <text outputFile="php://stdout" showUncoveredFiles="false"/> | ||
| <xml outputDirectory="build/phpunit/xml-coverage"/> | ||
| </report> | ||
| </coverage> | ||
|
|
||
| <testsuites> | ||
| <testsuite name="main"> | ||
| <directory>./tests</directory> | ||
| </testsuite> | ||
| </testsuites> | ||
| <testsuites> | ||
| <testsuite name="main"> | ||
| <directory>./tests</directory> | ||
| </testsuite> | ||
| </testsuites> | ||
|
|
||
| <extensions> | ||
| <extension class="Nexus\PHPUnit\Extension\Tachycardia"> | ||
| <arguments> | ||
| <array> | ||
| <element key="timeLimit"> | ||
| <double>0.50</double> | ||
| </element> | ||
| <element key="reportable"> | ||
| <integer>30</integer> | ||
| </element> | ||
| <element key="precision"> | ||
| <integer>2</integer> | ||
| </element> | ||
| <element key="collectBare"> | ||
| <boolean>true</boolean> | ||
| </element> | ||
| <element key="tabulate"> | ||
| <boolean>true</boolean> | ||
| </element> | ||
| </array> | ||
| </arguments> | ||
| </extension> | ||
| </extensions> | ||
| <extensions> | ||
| <bootstrap class="Nexus\PHPUnit\Tachycardia\TachycardiaExtension"> | ||
| <parameter name="time-limit" value="0.50"/> | ||
| <parameter name="report-count" value="30"/> | ||
| <parameter name="format" value="table"/> | ||
| </bootstrap> | ||
| </extensions> | ||
|
|
||
| <logging> | ||
| <testdoxHtml outputFile="build/phpunit/testdox.html"/> | ||
| <testdoxText outputFile="build/phpunit/testdox.txt"/> | ||
| <junit outputFile="build/phpunit/junit.xml"/> | ||
| </logging> | ||
| <logging> | ||
| <testdoxHtml outputFile="build/phpunit/testdox.html"/> | ||
| <testdoxText outputFile="build/phpunit/testdox.txt"/> | ||
| <junit outputFile="build/phpunit/junit.xml"/> | ||
| </logging> | ||
|
|
||
| <php> | ||
| <env name="XDEBUG_MODE" value="coverage"/> | ||
| <server name="app.baseURL" value="https://example.com/"/> | ||
| <php> | ||
| <env name="XDEBUG_MODE" value="coverage"/> | ||
| <server name="app.baseURL" value="https://example.com/"/> | ||
|
|
||
| <!-- Directory containing phpunit.xml --> | ||
| <const name="HOMEPATH" value="./"/> | ||
| <!-- Directory containing phpunit.xml --> | ||
| <const name="HOMEPATH" value="./"/> | ||
|
|
||
| <!-- Directory containing the Paths config file --> | ||
| <const name="CONFIGPATH" value="./vendor/codeigniter4/framework/app/Config/"/> | ||
| <!-- Directory containing the Paths config file --> | ||
| <const name="CONFIGPATH" value="vendor/codeigniter4/framework/app/Config/"/> | ||
|
|
||
| <!-- Directory containing the front controller (index.php) --> | ||
| <const name="PUBLICPATH" value="./vendor/codeigniter4/framework/public/"/> | ||
| <!-- Directory containing the front controller (index.php) --> | ||
| <const name="PUBLICPATH" value="./public/"/> | ||
|
|
||
| <!-- https://getcomposer.org/xdebug --> | ||
| <env name="COMPOSER_DISABLE_XDEBUG_WARN" value="1"/> | ||
| <!-- https://getcomposer.org/xdebug --> | ||
| <env name="COMPOSER_DISABLE_XDEBUG_WARN" value="1"/> | ||
|
|
||
| <!-- Database configuration --> | ||
| <env name="database.tests.strictOn" value="true"/> | ||
| <!-- Uncomment to use alternate testing database configuration | ||
| <env name="database.tests.hostname" value="localhost"/> | ||
| <env name="database.tests.database" value="tests"/> | ||
| <env name="database.tests.username" value="tests_user"/> | ||
| <env name="database.tests.password" value=""/> | ||
| <env name="database.tests.DBDriver" value="MySQLi"/> | ||
| <env name="database.tests.DBPrefix" value="tests_"/> | ||
| --> | ||
| </php> | ||
| <!-- Database configuration --> | ||
| <env name="database.tests.strictOn" value="true"/> | ||
| <!-- Uncomment to use alternate testing database configuration | ||
| <env name="database.tests.hostname" value="localhost"/> | ||
| <env name="database.tests.database" value="tests"/> | ||
| <env name="database.tests.username" value="tests_user"/> | ||
| <env name="database.tests.password" value=""/> | ||
| <env name="database.tests.DBDriver" value="MySQLi"/> | ||
| <env name="database.tests.DBPrefix" value="tests_"/> | ||
| --> | ||
| </php> | ||
| <source> | ||
| <include> | ||
| <directory suffix=".php">./src/</directory> | ||
| </include> | ||
| <exclude> | ||
| <directory suffix=".php">./src/Config</directory> | ||
| </exclude> | ||
| </source> | ||
| </phpunit> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,16 @@ | ||
| <?php | ||
|
|
||
| declare(strict_types=1); | ||
|
|
||
| /** | ||
| * This file is part of CodeIgniter Settings. | ||
| * | ||
| * (c) CodeIgniter Foundation <[email protected]> | ||
| * | ||
| * For the full copyright and license information, please view | ||
| * the LICENSE file that was distributed with this source code. | ||
| */ | ||
|
|
||
| use Rector\CodeQuality\Rector\BooleanAnd\SimplifyEmptyArrayCheckRector; | ||
| use Rector\CodeQuality\Rector\Expression\InlineIfToExplicitIfRector; | ||
| use Rector\CodeQuality\Rector\Foreach_\UnusedForeachValueToArrayKeysRector; | ||
|
|
@@ -89,9 +100,5 @@ | |
| $rectorConfig->rule(FuncGetArgsToVariadicParamRector::class); | ||
| $rectorConfig->rule(MakeInheritedMethodVisibilitySameAsParentRector::class); | ||
| $rectorConfig->rule(SimplifyEmptyArrayCheckRector::class); | ||
| $rectorConfig | ||
| ->ruleWithConfiguration(TypedPropertyFromAssignsRector::class, [ | ||
| // Set to false if you use in libraries, or it does create breaking changes. | ||
| TypedPropertyFromAssignsRector::INLINE_PUBLIC => false, | ||
| ]); | ||
| $rectorConfig->rule(TypedPropertyFromAssignsRector::class); | ||
| }; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.